Boost logo

Boost :

Subject: Re: [boost] boost::interprocess::bad_alloc in copy ctor of slist
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2008-12-03 12:42:38

Christoph Mathys wrote:
> Hi!
> I have an object containing an interprocess slist (wrapped in a simple
> template) which I first construct outside shared memory. Then I want
> to push_front this object into a slist lying inside shared memory. And
> I get an interprocess::bad_alloc exception from the lists copy
> constructor. If I don't use the slist's copy ctor but something like
> this->assign(x.begin(), x.end()), the code runs through (the list was
> always empty in the test).
> I use gcc 4.2.4 on linux 2.6.24 (ubuntu 8.04). Boost 1.36
> What am I doning wrong?

Nothing. You've hit an embarrasing bug. In theory the bug was reported
and fixed recently. Try to get Interprocess from trunk SVN to see if
this works.



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