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