Opened 11 years ago

Closed 11 years ago

#6223 closed Bugs (fixed)

Wrong documentation for slist::splice

Reported by: stheophil@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description

Two splice / splice_after calls are not correctly documented at http://www.boost.org/doc/libs/1_48_0/doc/html/boost/intrusive/slist.html#id1203131-b

  1. iterator splice_after(const_iterator prev, slist & x) ;

Requires: prev is an iterator to an element or x.end()/x.before_begin() in x.

  1. void splice(const_iterator it, slist & x, const_iterator * last = 0);

Requires: it is an iterator to an element in x.

In both cases (as in all other splice calls) the first parameter must be an iterator into this and not x.

Change History (1)

comment:1 by Ion Gaztañaga, 11 years ago

Resolution: fixed
Status: newclosed

Thanks. Fixed in trunk

Note: See TracTickets for help on using tickets.