mirror of
https://github.com/microsoft/GSL.git
synced 2025-03-26 14:58:31 -04:00
use narrow_cast
This commit is contained in:
parent
6432f920ea
commit
8009a703c2
@ -61,7 +61,7 @@ namespace gsl
|
|||||||
{
|
{
|
||||||
|
|
||||||
// [views.constants], constants
|
// [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>
|
template <class ElementType, std::size_t Extent = dynamic_extent>
|
||||||
class span;
|
class span;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user