We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0181836 commit 3b40a54Copy full SHA for 3b40a54
source/strings.tex
@@ -807,7 +807,7 @@
807
using const_iterator = @\impdefx{type of \tcode{basic_string::const_iterator}}@; // see \ref{container.requirements}
808
using reverse_iterator = std::reverse_iterator<iterator>;
809
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
810
- static const size_type npos = -1;
+ static constexpr size_type npos = size_type(-1);
811
812
// \ref{string.cons}, construct/copy/destroy
813
constexpr basic_string() noexcept(noexcept(Allocator())) : basic_string(Allocator()) { }
0 commit comments