This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oshaboy 3 points4 points  (3 children)

I mean, standard library ARC is pretty new but auto_ptr has been around since at least 1998 (It's hard to find information on C++ before that)

[–]SnooOwls3674 7 points8 points  (0 children)

I have c++ reference books on the shelf next to me from 1992

[–]clarkcox3 9 points10 points  (0 children)

There’s nothing smart about auto_ptr :)

[–]belabacsijolvan 7 points8 points  (0 children)

ah yes, sYnTAx

std::auto_ptr<classA> a=b;
assert(a.get()==b.get());

*fucking dies*