diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index 88d8877..7c2c926 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -1530,7 +1530,7 @@ class basic_string //! Throws: If memory allocation throws or out_of_range if pos > str.size(). //! //! Returns: *this - basic_string& assign(const basic_string& s, size_type pos, size_type n) + basic_string& assign(const basic_string& s, size_type pos, size_type n = npos) { if (pos > s.size()) throw_out_of_range("basic_string::assign out of range position"); @@ -2853,7 +2853,7 @@ class basic_string //! Returns: basic_string(*this, pos1, n1).compare(BasicStringView(sv, pos2, n2)). template