casting -1 for dynamic extent

This commit is contained in:
Jordan Maples [MSFT] 2020-02-03 12:49:57 -08:00
parent eabd9358f0
commit 5b8cf5422b

View File

@ -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<std::size_t>(-1);
template <class ElementType, std::size_t Extent = dynamic_extent>
class span;