diff --git a/include/gsl/string_span b/include/gsl/string_span index fc0dfeb..269f9b3 100644 --- a/include/gsl/string_span +++ b/include/gsl/string_span @@ -109,7 +109,7 @@ namespace details // template span ensure_sentinel(T* seq, - std::size_t max = std::numeric_limits::max()) + std::size_t max = static_cast(-1)) { Ensures(seq != nullptr); @@ -131,7 +131,7 @@ span ensure_sentinel(T* seq, // template span ensure_z(CharT* const& sz, - std::size_t max = std::numeric_limits::max()) + std::size_t max = static_cast(-1)) { return ensure_sentinel(sz, max); }