|
@@ -264,7 +264,7 @@ public:
|
|
|
typedef const_reverse_iterator reverse_iterator;
|
|
|
typedef size_t size_type;
|
|
|
typedef ptrdiff_t difference_type;
|
|
|
- static _LIBCPP_CONSTEXPR const size_type npos = -1; // size_type(-1);
|
|
|
+ static _LIBCPP_CONSTEXPR const size_type npos = numeric_limits<size_type>::max(); // size_type(-1);
|
|
|
|
|
|
static_assert((!is_array<value_type>::value), "Character type of basic_string_view must not be an array");
|
|
|
static_assert(( is_standard_layout<value_type>::value), "Character type of basic_string_view must be standard-layout");
|