|
Boost Users : |
Subject: [Boost-users] mutable_queue usage
From: Ralf Goertz (R_Goertz_at_[hidden])
Date: 2010-05-03 11:46:25
Hi,
I don't seem to understand how to use mutable_queue correctly. The
following crashes with
*** glibc detected *** ./prior: free(): invalid next size (fast):
0x00000000006038e0 ***
I guess that the third template parameter and/or the third constructor
parameter cause the problem.
#include <boost/pending/mutable_queue.hpp>
typedef
boost::mutable_queue<unsigned,
std::vector<unsigned>,
std::greater<unsigned> > Queue;
int main() {
boost::identity_property_map imap;
std::greater<unsigned> comp;
std::vector<unsigned> d;
d.push_back(47);
d.push_back(11);
d.push_back(42);
Queue q(d.begin(),d.end(),comp,imap);
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net