From 5b8cf5422b0d5330acb033872fa64150eedf4c8d Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Mon, 3 Feb 2020 12:49:57 -0800 Subject: [PATCH] casting -1 for dynamic extent --- include/gsl/span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/span b/include/gsl/span index 52af1f7..b060113 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -71,7 +71,7 @@ namespace gsl { // [views.constants], constants -constexpr const std::size_t dynamic_extent = -1; +constexpr const std::size_t dynamic_extent = static_cast(-1); template class span;