diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-12-30 01:16:57 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-12-30 01:54:49 +0100 |
commit | b3587102d160fb74a12935a79f06ee8a12712f12 (patch) | |
tree | 2afb7123bafef085cb97fc97f96be1aaf8c3a660 /src/common/virtual_buffer.h | |
parent | Merge pull request #5248 from ReinUsesLisp/update-dynarmic (diff) | |
download | yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.tar yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.tar.gz yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.tar.bz2 yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.tar.lz yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.tar.xz yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.tar.zst yuzu-b3587102d160fb74a12935a79f06ee8a12712f12.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/virtual_buffer.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/virtual_buffer.h b/src/common/virtual_buffer.h index 91d430036..fb1a6f81f 100644 --- a/src/common/virtual_buffer.h +++ b/src/common/virtual_buffer.h @@ -15,10 +15,12 @@ void FreeMemoryPages(void* base, std::size_t size) noexcept; template <typename T> class VirtualBuffer final { public: - static_assert( - std::is_trivially_constructible_v<T>, - "T must be trivially constructible, as non-trivial constructors will not be executed " - "with the current allocator"); + // TODO: Uncomment this and change Common::PageTable::PageInfo to be trivially constructible + // using std::atomic_ref once libc++ has support for it + // static_assert( + // std::is_trivially_constructible_v<T>, + // "T must be trivially constructible, as non-trivial constructors will not be executed " + // "with the current allocator"); constexpr VirtualBuffer() = default; explicit VirtualBuffer(std::size_t count) : alloc_size{count * sizeof(T)} { |