diff --git a/include/gsl/span b/include/gsl/span index 7cfdadd..6d9894b 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -361,7 +361,7 @@ public: template , class = std::enable_if_t< ( extent == dynamic_extent || N == extent ) && - std::is_convertible_v, pointer> + std::is_convertible, pointer>::value >> constexpr span( std::array& arr ) : storage_(&arr[0], details::extent_type()) @@ -371,8 +371,8 @@ public: template && - std::is_convertible_v, pointer> + std::is_const::value && + std::is_convertible, pointer>::value >> constexpr span(const std::array, N>& arr) GSL_NOEXCEPT : storage_(&arr[0], details::extent_type())