Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::ptr_container library question ?
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2015-02-02 03:48:16

On 30-01-2015 18:30, Danny K wrote:
> The ptr_container supports an overload for std::auto_ptr<U>. I was
> curious if there was a way to add the same functionality for
> std::unique_ptr<U>. ie an overload that allows a std::unique_ptr to be
> added to a ptr_vector for example?

Currently no. But when C++11 support is added, I think std::unique_ptr
will be used instead of std::auto_ptr and ptr_container::auto_type.



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at