From 62ba7ca18b440856f961ecbf2258fc220076f1ef Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 4 Oct 2021 19:08:12 +0300 Subject: [PATCH] Define npos as BOOST_CONSTEXPR_OR_CONST --- include/boost/core/string_view.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/string_view.hpp b/include/boost/core/string_view.hpp index 9009843..f6ba3a1 100644 --- a/include/boost/core/string_view.hpp +++ b/include/boost/core/string_view.hpp @@ -566,7 +566,7 @@ public: }; #if defined(BOOST_NO_CXX17_INLINE_VARIABLES) -template std::size_t const basic_string_view::npos; +template BOOST_CONSTEXPR_OR_CONST std::size_t basic_string_view::npos; #endif typedef basic_string_view string_view;