aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-20 12:31:46 -0700
committerChris Robinson <[email protected]>2019-08-20 12:31:46 -0700
commit3e499e70fd947e6c4487f9496c1647909a61586f (patch)
tree3950f03cc3c95f314b015eb2ac0004097dcf6954
parent3a6676b61e0ff4f7aa27482fa421f86150cc0c3b (diff)
Try to improve non-dynamic-extent span construction
-rw-r--r--common/alspan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/alspan.h b/common/alspan.h
index 6a43b32a..63b36eaa 100644
--- a/common/alspan.h
+++ b/common/alspan.h
@@ -116,8 +116,8 @@ public:
constexpr span(U &cont) : span{al::data(cont), al::size(cont)} { }
template<typename U, REQUIRES(IS_VALID_CONTAINER(const U))>
constexpr span(const U &cont) : span{al::data(cont), al::size(cont)} { }
- template<typename U, size_t N, REQUIRES(!std::is_same<element_type,U>::value && extent == N && std::is_convertible<U(*)[],element_type(*)[]>::value)>
- constexpr span(const span<U,N> &span_) noexcept : span{al::data(span_), al::size(span_)} { }
+ template<typename U, REQUIRES(!std::is_same<element_type,U>::value && std::is_convertible<U(*)[],element_type(*)[]>::value)>
+ 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;