Opened 13 years ago
Closed 12 years ago
#3314 closed Bugs (fixed)
erase_tail documentation bug
| Reported by: | 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 , 13 years ago
| Component: | Documentation → string_algo |
|---|---|
| Owner: | changed from to |
comment:2 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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