boost::ptr_container library question ?
30 Jan
2015
30 Jan
'15
5:30 p.m.
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?
2 Feb
2 Feb
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
3586
Age (days ago)
3589
Last active (days ago)
1 comments
2 participants
participants (2)
-
Danny K
-
Thorsten Ottosen