Modify

Ticket #6223 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

Wrong documentation for slist::splice

Reported by: stheophil@… Owned by: igaztanaga
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.

Attachments

Change History

comment:1 Changed 2 years ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed

Thanks. Fixed in trunk

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.