mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
casting -1 for dynamic extent
This commit is contained in:
parent
eabd9358f0
commit
5b8cf5422b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user