From ce5996c9bdd3c9e272c3215a2f651fa9837fc41c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 23 Feb 2017 19:55:41 +0100 Subject: [PATCH] Cosmetic indentation --- include/boost/container/string.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index b1fced8..7b780fd 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -1805,7 +1805,7 @@ class basic_string return this->insert(p, il.begin(), il.end()); } #endif - + //! Effects: Removes the last element from the container. //! //! Throws: Nothing. @@ -1939,7 +1939,7 @@ class basic_string //! Throws: out_of_range if pos1 > size() or pos2 > sv.size(). //! - //! Effects: Determines the effective length rlen of the string to be inserted as the + //! Effects: Determines the effective length rlen of the string to be inserted as the //! smaller of n2 and sv.size() - pos2 and calls `replace(pos1, n1, sv.data() + pos2, rlen)`. //! //! Returns: *this. @@ -2144,8 +2144,9 @@ class basic_string //! : *this. basic_string& replace(const_iterator i1, const_iterator i2, std::initializer_list il) { - return this->replace( static_cast(i1 - begin()) - , static_cast(i2 - i1), il.begin(), il.size()); + return this->replace( static_cast(i1 - this->cbegin()) + , static_cast(i2 - i1) + , il.begin(), il.size()); } #endif