diff options
author | Chris Robinson <[email protected]> | 2019-05-27 17:48:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-27 17:48:19 -0700 |
commit | bac52e95371e9a0342523314e718bb7c1cdf13ad (patch) | |
tree | 86665269a8e513faa0456206ef84cbace8a30f1a /common | |
parent | 28fbb5178a432f5027082c938118270b263230a2 (diff) |
Fix default constructor for static-sized spans
Diffstat (limited to 'common')
-rw-r--r-- | common/alspan.h | 2 |
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} { } |