Avoid signed/unsigned mismatch warning in span.hpp

This commit is contained in:
Peter Dimov
2021-11-01 02:20:26 +02:00
parent bbfa6344fa
commit ba208ad7fc

View File

@ -15,7 +15,7 @@ Distributed under the Boost Software License, Version 1.0.
namespace boost {
constexpr std::size_t dynamic_extent = -1;
constexpr std::size_t dynamic_extent = static_cast<std::size_t>( -1 );
template<class T, std::size_t E = dynamic_extent>
class span;