From 4bae4cbafb36cd922492dbc1fb7a0cbc075592dc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 30 May 2019 18:39:51 -0700 Subject: Another attempt to fix MSVC 2015 --- common/alspan.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/common/alspan.h b/common/alspan.h index 62f7b2ab..6b0dc7d6 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -108,12 +108,10 @@ public: constexpr span() noexcept { } constexpr span(pointer ptr, index_type /*count*/) : mData{ptr} { } constexpr span(pointer first, pointer /*last*/) : mData{first} { } - template - constexpr span(element_type (&arr)[N]) noexcept : span{al::data(arr), al::size(arr)} { } - template&))> - constexpr span(std::array &arr) noexcept : span{al::data(arr), al::size(arr)} { } - template&))> - constexpr span(const std::array &arr) noexcept : span{al::data(arr), al::size(arr)} { } + constexpr span(element_type (&arr)[E]) noexcept : span{al::data(arr), al::size(arr)} { } + constexpr span(std::array &arr) noexcept : span{al::data(arr), al::size(arr)} { } + template::value, REQUIRES(is_const)> + constexpr span(const std::array &arr) noexcept : span{al::data(arr), al::size(arr)} { } template constexpr span(U &cont) : span{al::data(cont), al::size(cont)} { } template @@ -204,9 +202,9 @@ public: constexpr span(pointer first, pointer last) : mData{first}, mDataEnd{last} { } template constexpr span(element_type (&arr)[N]) noexcept : span{al::data(arr), al::size(arr)} { } - template&))> + template constexpr span(std::array &arr) noexcept : span{al::data(arr), al::size(arr)} { } - template&))> + template::value, REQUIRES(is_const)> constexpr span(const std::array &arr) noexcept : span{al::data(arr), al::size(arr)} { } template constexpr span(U &cont) : span{al::data(cont), al::size(cont)} { } -- cgit v1.2.3