diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-19 17:14:47 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-19 17:28:57 +0200 |
commit | 024b5fe91ad89820f64011ef2d37c8b956c94386 (patch) | |
tree | 7816cc9d561501784bb47915baf46455ad5da00d /src/common/alignment.h | |
parent | Common: Correct alignment allocator to work on C++14 or higher. (diff) | |
download | yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.gz yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.bz2 yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.lz yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.xz yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.zst yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/alignment.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/alignment.h b/src/common/alignment.h index da2e61e10..0ce218c60 100644 --- a/src/common/alignment.h +++ b/src/common/alignment.h @@ -52,7 +52,6 @@ public: using const_reference = const T&; public: - pointer address(reference r) { return std::addressof(r); } @@ -62,11 +61,11 @@ public: } pointer allocate(size_type n) { - return static_cast<pointer>(::operator new(n, std::align_val_t{Align})); + return static_cast<pointer>(::operator new (n, std::align_val_t{Align})); } void deallocate(pointer p, size_type) { - ::operator delete(p, std::align_val_t{Align}); + ::operator delete (p, std::align_val_t{Align}); } void construct(pointer p, const value_type& wert) { |