Sunday, 11 August 2013

Shared pointer constructor still takes auto_ptr as a movable object

Shared pointer constructor still takes auto_ptr as a movable object

Shared pointer constructor still takes auto_ptr as a moveable object. I
Was refering to shared_ptr tutorial and found this behaviour.
http://www.cplusplus.com/reference/memory/shared_ptr/shared_ptr/
template <class U> shared_ptr (auto_ptr<U>&& x);
Doesn't auto_ptr is deprecated in c++11? Or when this situation actually
happens.

No comments:

Post a Comment