From 2f19b410ff829684e0711fde0c6e5a5184387735 Mon Sep 17 00:00:00 2001 From: Jeroen Akershoek Date: Wed, 6 Dec 2017 00:32:38 +0200 Subject: [PATCH] Removed use of is_const_v and is_convertible_v in span so things work on older compilers --- include/gsl/span | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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())