|
Boost Users : |
Subject: Re: [Boost-users] Acsess boost::intrusive::list inside a map
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-03-11 14:57:28
El 11/03/2011 20:19, Dan Bloomquist escribió:
>
> I would like to store lists inside a map value. I can:
>
> typedef /*boost::intrusive*/list< ClassBase > ClassList;
You can't because intrusive containers are not copyable. They will be
movable in the future once Boost.Move is integrated in trunk and
::boost::unordered_map accepts movable classes. Meanwhile perhaps you
can use emplace to construct directly the value in the map, but I don't
know if that will work.
Ion
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