diff options
author | Chris Robinson <[email protected]> | 2019-05-27 15:56:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-27 15:56:50 -0700 |
commit | 28fbb5178a432f5027082c938118270b263230a2 (patch) | |
tree | ab6f9931237e225e69288e985508a5781c0e7a31 /common/alspan.h | |
parent | aad49d666a68c893df2fe01d084b2f021ad402aa (diff) |
Remove unnecessary assignment operators
Diffstat (limited to 'common/alspan.h')
-rw-r--r-- | common/alspan.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/common/alspan.h b/common/alspan.h index e5a91686..ae3f1c06 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -119,9 +119,6 @@ public: constexpr span(const span&) noexcept = default; span& operator=(const span &rhs) noexcept = default; - template<typename U, size_t N, REQUIRES(extent == N && std::is_convertible<U(*)[],element_type(*)[]>::value)> - span& operator=(const span<U,N> &rhs) noexcept - { mData = rhs.data(); return *this; } constexpr reference front() const { return *mData; } constexpr reference back() const { return *(mData+E-1); } @@ -216,13 +213,6 @@ public: constexpr span(const span&) noexcept = default; span& operator=(const span &rhs) noexcept = default; - template<typename U, size_t N, REQUIRES(std::is_convertible<U(*)[],element_type(*)[]>::value)> - span& operator=(const span<U,N> &rhs) noexcept - { - mData = rhs.data(); - mDataEnd = mData + rhs.size(); - return *this; - } constexpr reference front() const { return *mData; } constexpr reference back() const { return *(mDataEnd-1); } |