From e14d24fd65e53c19eceebc91e1aad78494970fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 2 Jan 2026 18:42:06 +0100 Subject: [PATCH] Fix missing default arguments for append and compare that were added in C++14 --- include/boost/container/string.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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