Add static const npos definition

This commit is contained in:
Ion Gaztañaga
2026-01-02 20:14:50 +01:00
parent c1a6136513
commit 0e70115cd2

View File

@@ -624,7 +624,7 @@ class basic_string
typedef BOOST_CONTAINER_IMPDEF(const_pointer) const_iterator;
typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator<iterator>) reverse_iterator;
typedef BOOST_CONTAINER_IMPDEF(boost::container::reverse_iterator<const_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 <class CharT, class Traits, class Allocator>
const typename basic_string<CharT, Traits, Allocator>::size_type
basic_string<CharT, Traits, Allocator>::npos;
template<class S>
struct is_string
{