diff options
| author | 2019-07-19 11:14:47 -0400 | |
|---|---|---|
| committer | 2019-07-19 11:28:57 -0400 | |
| commit | 024b5fe91ad89820f64011ef2d37c8b956c94386 (patch) | |
| tree | 7816cc9d561501784bb47915baf46455ad5da00d /src/common | |
| parent | Common: Correct alignment allocator to work on C++14 or higher. (diff) | |
| download | yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.gz yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.tar.xz yuzu-024b5fe91ad89820f64011ef2d37c8b956c94386.zip | |
Kernel: Address Feedback
Diffstat (limited to 'src/common')
| -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: | |||
| 52 | using const_reference = const T&; | 52 | using const_reference = const T&; |
| 53 | 53 | ||
| 54 | public: | 54 | public: |
| 55 | |||
| 56 | pointer address(reference r) { | 55 | pointer address(reference r) { |
| 57 | return std::addressof(r); | 56 | return std::addressof(r); |
| 58 | } | 57 | } |
| @@ -62,11 +61,11 @@ public: | |||
| 62 | } | 61 | } |
| 63 | 62 | ||
| 64 | pointer allocate(size_type n) { | 63 | pointer allocate(size_type n) { |
| 65 | return static_cast<pointer>(::operator new(n, std::align_val_t{Align})); | 64 | return static_cast<pointer>(::operator new (n, std::align_val_t{Align})); |
| 66 | } | 65 | } |
| 67 | 66 | ||
| 68 | void deallocate(pointer p, size_type) { | 67 | void deallocate(pointer p, size_type) { |
| 69 | ::operator delete(p, std::align_val_t{Align}); | 68 | ::operator delete (p, std::align_val_t{Align}); |
| 70 | } | 69 | } |
| 71 | 70 | ||
| 72 | void construct(pointer p, const value_type& wert) { | 71 | void construct(pointer p, const value_type& wert) { |