We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 349e7a1 commit 8dc66b4Copy full SHA for 8dc66b4
include/kfr/cometa/memory.hpp
@@ -17,10 +17,10 @@ namespace details
17
18
struct memory_statistics
19
{
20
- std::atomic_uintptr_t allocation_count = ATOMIC_VAR_INIT(0);
21
- std::atomic_uintptr_t allocation_size = ATOMIC_VAR_INIT(0);
22
- std::atomic_uintptr_t deallocation_count = ATOMIC_VAR_INIT(0);
23
- std::atomic_uintptr_t deallocation_size = ATOMIC_VAR_INIT(0);
+ std::atomic_uintptr_t allocation_count{ 0 };
+ std::atomic_uintptr_t allocation_size{ 0 };
+ std::atomic_uintptr_t deallocation_count{ 0 };
+ std::atomic_uintptr_t deallocation_size{ 0 };
24
};
25
26
inline memory_statistics& get_memory_statistics()
0 commit comments