diff options
author | Chris Robinson <[email protected]> | 2020-10-19 19:42:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-10-20 11:40:27 -0700 |
commit | a3ea46f77385a2a489a06209d47d1fe1b911848f (patch) | |
tree | ffb5bda67d65b8c51e2fdf447e3663918507376a /common/alspan.h | |
parent | 1acfd1163530576534e4860421dfee0ef4b7cdda (diff) |
Add some missing constexpr attributes
Diffstat (limited to 'common/alspan.h')
-rw-r--r-- | common/alspan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/alspan.h b/common/alspan.h index 3c65e2e8..7be07354 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -118,7 +118,7 @@ public: constexpr span(const span<U,E> &span_) noexcept : span{al::data(span_), al::size(span_)} { } constexpr span(const span&) noexcept = default; - span& operator=(const span &rhs) noexcept = default; + constexpr span& operator=(const span &rhs) noexcept = default; constexpr reference front() const { return *mData; } constexpr reference back() const { return *(mData+E-1); } @@ -212,7 +212,7 @@ public: constexpr span(const span<U,N> &span_) noexcept : span{al::data(span_), al::size(span_)} { } constexpr span(const span&) noexcept = default; - span& operator=(const span &rhs) noexcept = default; + constexpr span& operator=(const span &rhs) noexcept = default; constexpr reference front() const { return *mData; } constexpr reference back() const { return *(mDataEnd-1); } |