From 0e70115cd2c5fa1f44f5550bc024ac34ef8a9e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 2 Jan 2026 20:14:50 +0100 Subject: [PATCH] Add static const npos definition --- include/boost/container/string.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index fce660d..313cc63 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -624,7 +624,7 @@ class basic_string typedef BOOST_CONTAINER_IMPDEF(const_pointer) const_iterator; typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator) reverse_iterator; typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator) const_reverse_iterator; - BOOST_STATIC_CONSTEXPR size_type npos = size_type(-1); + static const size_type npos = size_type(-1); #ifndef BOOST_CONTAINER_DOXYGEN_INVOKED private: @@ -3145,6 +3145,10 @@ wstring; #else +template +const typename basic_string::size_type + basic_string::npos; + template struct is_string {