
11 Mar
2011
11 Mar
'11
7:57 p.m.
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