diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2019-10-07 01:30:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 01:30:54 +0200 |
commit | 3cb4c9f08afc57e40fc103e2d087cde7c48bf153 (patch) | |
tree | 23ef1f71eeb49bcc75668cf9180c5c3b6afea681 | |
parent | Merge pull request #2954 from ReinUsesLisp/fix-invalidation (diff) | |
parent | alignment: Resolve allocator construction issues on debug (diff) | |
download | yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.tar yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.tar.gz yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.tar.bz2 yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.tar.lz yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.tar.xz yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.tar.zst yuzu-3cb4c9f08afc57e40fc103e2d087cde7c48bf153.zip |
-rw-r--r-- | src/common/alignment.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index 88d5d3a65..cdd4833f8 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h @@ -51,7 +51,17 @@ public: using reference = T&; using const_reference = const T&; + using propagate_on_container_copy_assignment = std::true_type; + using propagate_on_container_move_assignment = std::true_type; + using propagate_on_container_swap = std::true_type; + using is_always_equal = std::true_type; + public: + constexpr AlignmentAllocator() noexcept = default; + + template <typename T2> + constexpr AlignmentAllocator(const AlignmentAllocator<T2, Align>&) noexcept {} + pointer address(reference r) noexcept { return std::addressof(r); } |