mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
use narrow_cast
This commit is contained in:
parent
6432f920ea
commit
8009a703c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user