Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjs137 <52084977+tjs137@users.noreply.github.com>2020-10-25 02:44:06 +0300
committerGitHub <noreply@github.com>2020-10-25 02:44:06 +0300
commit8009a703c20055ab35ea9ad3b5c016183ca9ed43 (patch)
treeb9358f16ed618adc248e5a12d2eb1e9e2d6820c3
parent6432f920ea52b0b7943852daadae270a39798485 (diff)
use `narrow_cast`
-rw-r--r--include/gsl/span2
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;