From 8009a703c20055ab35ea9ad3b5c016183ca9ed43 Mon Sep 17 00:00:00 2001 From: tjs137 <52084977+tjs137@users.noreply.github.com> Date: Sat, 24 Oct 2020 19:44:06 -0400 Subject: [PATCH] use `narrow_cast` --- include/gsl/span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/span b/include/gsl/span index 2133baa..1013a24 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -61,7 +61,7 @@ namespace gsl { // [views.constants], constants -constexpr const std::size_t dynamic_extent = static_cast(-1); +constexpr const std::size_t dynamic_extent = narrow_cast(-1); template class span;