|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-10-25 11:35:32
Thorsten Ottosen <nesotto_at_[hidden]> 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
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