diff options
author | tjs137 <52084977+tjs137@users.noreply.github.com> | 2020-10-25 02:44:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 02:44:06 +0300 |
commit | 8009a703c20055ab35ea9ad3b5c016183ca9ed43 (patch) | |
tree | b9358f16ed618adc248e5a12d2eb1e9e2d6820c3 | |
parent | 6432f920ea52b0b7943852daadae270a39798485 (diff) |
use `narrow_cast`
-rw-r--r-- | include/gsl/span | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::size_t>(-1); +constexpr const std::size_t dynamic_extent = narrow_cast<std::size_t>(-1); template <class ElementType, std::size_t Extent = dynamic_extent> class span; |