Saturday, 7 September 2013

Why is auto_ptr specializated for void?

Why is auto_ptr specializated for void?

I have decided to move over from raw pointers to smart pointers, so I
though I could start by reading
http://en.cppreference.com/w/cpp/memory/auto_ptr. There I've seen that
they are specializated for void.
Why is this? Is is usefull in any situation?

No comments:

Post a Comment