Browse Source
Merge pull request #2955 from lioncash/allocator
alignment: Resolve allocator construction issues on debug
pull/15/merge
Rodrigo Locatti
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
0 deletions
-
src/common/alignment.h
|
|
@ -51,7 +51,17 @@ public: |
|
|
using reference = T&; |
|
|
using reference = T&; |
|
|
using const_reference = const 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: |
|
|
public: |
|
|
|
|
|
constexpr AlignmentAllocator() noexcept = default; |
|
|
|
|
|
|
|
|
|
|
|
template <typename T2> |
|
|
|
|
|
constexpr AlignmentAllocator(const AlignmentAllocator<T2, Align>&) noexcept {} |
|
|
|
|
|
|
|
|
pointer address(reference r) noexcept { |
|
|
pointer address(reference r) noexcept { |
|
|
return std::addressof(r); |
|
|
return std::addressof(r); |
|
|
} |
|
|
} |
|
|
|