use narrow_cast

This commit is contained in:
tjs137
2020-10-24 19:44:06 -04:00
committed by GitHub
parent 6432f920ea
commit 8009a703c2

View File

@@ -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;