From 02127743240d3f9ec67d980d13916a8f1284244e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 29 Apr 2022 02:43:37 +0300 Subject: [PATCH] Avoid -Wshadow warning under g++ 4.8 --- include/boost/core/detail/string_view.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/core/detail/string_view.hpp b/include/boost/core/detail/string_view.hpp index 14c7edc..7e85aac 100644 --- a/include/boost/core/detail/string_view.hpp +++ b/include/boost/core/detail/string_view.hpp @@ -380,10 +380,10 @@ public: { } - template BOOST_CXX14_CONSTEXPR basic_string_view( Ch const* begin, End end, - typename boost::enable_if >::type* = 0 ) BOOST_NOEXCEPT: p_( begin ), n_( end - begin ) + template BOOST_CXX14_CONSTEXPR basic_string_view( Ch const* first, End last, + typename boost::enable_if >::type* = 0 ) BOOST_NOEXCEPT: p_( first ), n_( last - first ) { - BOOST_ASSERT( end - begin >= 0 ); + BOOST_ASSERT( last - first >= 0 ); } template basic_string_view( std::basic_string, A> const& str ) BOOST_NOEXCEPT: p_( str.data() ), n_( str.size() )