mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 05:50:08 +00:00
alignment: Resolve allocator construction issues on debug
This was related to the source allocator being passed into the constructor potentially having a different type than allocator being constructed. We simply need to provide a constructor to handle this case. This resolves issues related to the allocator causing debug builds on MSVC to fail.
This commit is contained in:
parent
9aafb2a277
commit
57ffada746
@ -57,6 +57,11 @@ public:
|
|||||||
using is_always_equal = 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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user