
3 Dec
2008
3 Dec
'08
5:42 p.m.
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. Regards, Ion