
25 Oct
2005
25 Oct
'05
10:35 a.m.
Thorsten Ottosen <nesotto@cs.aau.dk> writes:
Oleg Smolsky <oleg.smolsky <at> pacific-simulators.co.nz> writes:
Hi all,
I've just started looking at ptr_vector<> and got stuck on the following issue:
std::map<std::string, boost::ptr_vector<Simple> > map; map["key"].push_back(new Simple);
The problem is that no pointer container is copyable.
Note that it was a design decision to make them noncopyable. See http://lists.boost.org/Archives/boost/2005/04/85005.php for the background. -- Dave Abrahams Boost Consulting www.boost-consulting.com