diff --git a/include/gsl/span b/include/gsl/span index 3022e0d..a649cea 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -100,7 +100,7 @@ namespace details template struct is_allowed_extent_conversion - : std::integral_constant + : std::integral_constant { }; @@ -421,24 +421,24 @@ public: constexpr span() noexcept : storage_(nullptr, details::extent_type<0>()) {} - template = 0> + template = 0> constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count) { Expects(count == Extent); } - template = 0> + template = 0> constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count) {} - template = 0> + template = 0> constexpr explicit span(pointer firstElem, pointer lastElem) noexcept : storage_(firstElem, static_cast(lastElem - firstElem)) { Expects(lastElem - firstElem == static_cast(Extent)); } - template = 0> + template = 0> constexpr span(pointer firstElem, pointer lastElem) noexcept : storage_(firstElem, static_cast(lastElem - firstElem)) {} diff --git a/include/gsl/string_span b/include/gsl/string_span index 092c8d8..ba125b7 100644 --- a/include/gsl/string_span +++ b/include/gsl/string_span @@ -471,7 +471,7 @@ bool operator==(const T& one, const gsl::basic_string_span& other } // operator != -template , Extent>>::value>> bool operator!=(gsl::basic_string_span one, const T& other) @@ -480,7 +480,7 @@ bool operator!=(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename = std::enable_if_t< std::is_convertible, Extent>>::value && !gsl::details::is_basic_string_span::value>> @@ -490,7 +490,7 @@ bool operator!=(const T& one, gsl::basic_string_span other) } // operator< -template , Extent>>::value>> bool operator<(gsl::basic_string_span one, const T& other) @@ -500,7 +500,7 @@ bool operator<(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename = std::enable_if_t< std::is_convertible, Extent>>::value && !gsl::details::is_basic_string_span::value>> @@ -516,7 +516,7 @@ bool operator<(const T& one, gsl::basic_string_span other) // so the cases below are already covered by the previous operators template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -530,7 +530,7 @@ bool operator<(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -545,7 +545,7 @@ bool operator<(const T& one, gsl::basic_string_span other) #endif // operator <= -template , Extent>>::value>> bool operator<=(gsl::basic_string_span one, const T& other) @@ -554,7 +554,7 @@ bool operator<=(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename = std::enable_if_t< std::is_convertible, Extent>>::value && !gsl::details::is_basic_string_span::value>> @@ -569,7 +569,7 @@ bool operator<=(const T& one, gsl::basic_string_span other) // so the cases below are already covered by the previous operators template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -582,7 +582,7 @@ bool operator<=(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -596,7 +596,7 @@ bool operator<=(const T& one, gsl::basic_string_span other) #endif // operator> -template , Extent>>::value>> bool operator>(gsl::basic_string_span one, const T& other) @@ -605,7 +605,7 @@ bool operator>(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename = std::enable_if_t< std::is_convertible, Extent>>::value && !gsl::details::is_basic_string_span::value>> @@ -620,7 +620,7 @@ bool operator>(const T& one, gsl::basic_string_span other) // so the cases below are already covered by the previous operators template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -633,7 +633,7 @@ bool operator>(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -647,7 +647,7 @@ bool operator>(const T& one, gsl::basic_string_span other) #endif // operator >= -template , Extent>>::value>> bool operator>=(gsl::basic_string_span one, const T& other) @@ -656,7 +656,7 @@ bool operator>=(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename = std::enable_if_t< std::is_convertible, Extent>>::value && !gsl::details::is_basic_string_span::value>> @@ -671,7 +671,7 @@ bool operator>=(const T& one, gsl::basic_string_span other) // so the cases below are already covered by the previous operators template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value && @@ -684,7 +684,7 @@ bool operator>=(gsl::basic_string_span one, const T& other) } template < - typename CharT, std::size_t Extent = gsl::dynamic_extent, typename T, + typename CharT, std::size_t Extent = dynamic_extent, typename T, typename DataType = typename T::value_type, typename = std::enable_if_t< !gsl::details::is_span::value && !gsl::details::is_basic_string_span::value &&