Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-02-14 17:45:43

Bugs item #897250, was opened at 2004-02-14 22:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Cromwell Enage (expaler)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::mutable_queue constructor with iterators

Initial Comment:
Constructing a mutable_queue using container.begin()
and container.end() causes the elements in container to
be inserted twice into the mutable_queue. This is
because the mutable_queue's internal container c is
first initialized with the same iterators, thus already
inserting the elements into c, and then the while loop
inserts the elements into c again.

Changing c(first, last) to c() in the constructor
should fix the bug.


You can respond by visiting:

SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at