2 Feb
2015
2 Feb
'15
8:48 a.m.
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. regards Thorsten