Add some missing constexpr attributes
This commit is contained in:
+2
-2
@@ -41,11 +41,11 @@ template<typename T, REQUIRES(std::is_integral<T>::value)> \
|
||||
inline constexpr al::byte operator op (al::byte lhs, T rhs) noexcept \
|
||||
{ return al::byte(to_integer<unsigned int>(lhs) op static_cast<unsigned int>(rhs)); } \
|
||||
template<typename T, REQUIRES(std::is_integral<T>::value)> \
|
||||
inline al::byte& operator opeq (al::byte &lhs, T rhs) noexcept \
|
||||
inline constexpr al::byte& operator opeq (al::byte &lhs, T rhs) noexcept \
|
||||
{ lhs = lhs op rhs; return lhs; } \
|
||||
inline constexpr al::byte operator op (al::byte lhs, al::byte rhs) noexcept \
|
||||
{ return al::byte(lhs op to_integer<unsigned int>(rhs)); } \
|
||||
inline al::byte& operator opeq (al::byte &lhs, al::byte rhs) noexcept \
|
||||
inline constexpr al::byte& operator opeq (al::byte &lhs, al::byte rhs) noexcept \
|
||||
{ lhs = lhs op rhs; return lhs; }
|
||||
|
||||
AL_DECL_OP(|, |=)
|
||||
|
||||
+2
-2
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user