[Boost-bugs] [Boost C++ Libraries] #3314: erase_tail documentation bug

Subject: [Boost-bugs] [Boost C++ Libraries] #3314: erase_tail documentation bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-03 23:35:16


#3314: erase_tail documentation bug
--------------------------------------+-------------------------------------
 Reporter: bartosz.janiak@… | Owner: matias
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: Documentation
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
--------------------------------------+-------------------------------------
 It seems that the documentation for erase_tail function should read

 \param N Length of the tail

 instead of

 \param N Length of the head

 Currently the following code:

     std::string str("foobar");
     erase_tail(str, 1);

 causes str to contain "fooba", not "f".

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3314>
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:00 UTC