From 877816faa4090cbf2d4081397a71e7f24acc0b09 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Mon, 3 Feb 2020 18:16:41 -0800 Subject: [PATCH] addressing feedback --- include/gsl/string_span | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }