Subject: [Boost-bugs] [Boost C++ Libraries] #7232: boost::container::basic_string::insert's implementation is inconsistent with a document
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-14 17:36:25
#7232: boost::container::basic_string::insert's implementation is inconsistent
with a document
----------------------------------------+-----------------------------------
Reporter: kariya_mitsuru@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
----------------------------------------+-----------------------------------
In boost::container::basic_string::insert, the function prototype is
{{{
void insert(const_iterator p, size_type n, CharT c);
}}}
but the document has a return value description
Returns: An iterator which refers to the copy of the first inserted
character, or p if n == 0.
Also
{{{
template<typename InputIter>
void insert(const_iterator p, InputIter first, InputIter last);
}}}
and
Returns: An iterator which refers to the copy of the first inserted
character, or p if first == last.
I think these functions should return an iterator written in the document,
like c++11.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7232> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC