diff options
Diffstat (limited to 'src/common/sparse_large_vector.h')
| -rw-r--r-- | src/common/sparse_large_vector.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/sparse_large_vector.h b/src/common/sparse_large_vector.h index 827944fb08..dad3aea97e 100644 --- a/src/common/sparse_large_vector.h +++ b/src/common/sparse_large_vector.h @@ -38,7 +38,8 @@ void FreeMemoryPages(void* base, std::size_t size) noexcept; /// A large page-aligned buffer that has optimized memory usage for zero-writes. template <typename T> -requires std::is_trivially_copyable_v<T> + // MSVC doesn't regard structs with atomics as trivially copyable + // requires std::is_trivially_copyable_v<T> class SparseLargeVector final { public: constexpr SparseLargeVector() = default; |
