Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=897250&group_id=7586

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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=897250&group_id=7586

-------------------------------------------------------
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!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk