aboutsummaryrefslogtreecommitdiffstats
path: root/common/alspan.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-05-27 17:48:19 -0700
committerChris Robinson <[email protected]>2019-05-27 17:48:19 -0700
commitbac52e95371e9a0342523314e718bb7c1cdf13ad (patch)
tree86665269a8e513faa0456206ef84cbace8a30f1a /common/alspan.h
parent28fbb5178a432f5027082c938118270b263230a2 (diff)
Fix default constructor for static-sized spans
Diffstat (limited to 'common/alspan.h')
-rw-r--r--common/alspan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alspan.h b/common/alspan.h
index ae3f1c06..8ba211fa 100644
--- a/common/alspan.h
+++ b/common/alspan.h
@@ -100,7 +100,7 @@ public:
static constexpr size_t extent{E};
- template<REQUIRES(extent == 0)>
+ template<bool allow_def=(extent==0), REQUIRES(allow_def)>
constexpr span() noexcept { }
constexpr span(pointer ptr, index_type /*count*/) : mData{ptr} { }
constexpr span(pointer first, pointer /*last*/) : mData{first} { }