mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
Add static const npos definition
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user