Opened 13 years ago

Closed 12 years ago

#3314 closed Bugs (fixed)

erase_tail documentation bug

Reported by: bartosz.janiak@… Owned by: Pavol Droba
Milestone: Boost 1.40.0 Component: string_algo
Version: Boost 1.39.0 Severity: Problem
Keywords: Cc:

Description

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".

Change History (2)

comment:1 by Steven Watanabe, 13 years ago

Component: Documentationstring_algo
Owner: changed from Matias Capeletto to Pavol Droba

comment:2 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [62690]) Tail not head. Fixes #3314

Note: See TracTickets for help on using tickets.