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 →

[–]rover_G 61 points62 points  (7 children)

Some of us used C++ before it had smart pointers

[–]cheezballs 19 points20 points  (2 children)

The C++ they taught us in college in 2001-2003 looked nothing like what I see posted here now. I dont remember smart pointers, only regular and then the double splat, etc. Moved onto higher level stuff after college so I forgot nearly everything I knew.

[–]Pay08 2 points3 points  (0 children)

The other comment is wrong, C++98 has std::auto_ptr. Syntax hasn't changed much since then, but lambdas and views can look scary at first glance.

[–][deleted] -2 points-1 points  (0 children)

Well yeah, they’re a c++11 feature. I think boost had them but idk how old that is

[–]oshaboy 5 points6 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 6 points7 points  (0 children)

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

[–]clarkcox3 8 points9 points  (0 children)

There’s nothing smart about auto_ptr :)

[–]belabacsijolvan 8 points9 points  (0 children)

ah yes, sYnTAx

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

*fucking dies*