From ba208ad7fc968756b025400881c441e1bb988bb3 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 02:20:26 +0200 Subject: [PATCH] Avoid signed/unsigned mismatch warning in span.hpp --- include/boost/core/span.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/span.hpp b/include/boost/core/span.hpp index bafb286..39f5cef 100644 --- a/include/boost/core/span.hpp +++ b/include/boost/core/span.hpp @@ -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( -1 ); template class span;