Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Sepple

Name: Anonymous 2012-08-14 8:33

Declaring a member variable of a class instance

if (is owned)
    if (is ownership shared)
        if (is it bound to scope)
            plain declaration
        else
            unique_ptr
    else
        shared_ptr
else
    if (it outlives this object)
        reference
    else
        weak_ptr

Did I get it right?

Name: Anonymous 2012-08-14 9:57

No. The right way is use Lisp.

Name: Anonymous 2012-08-14 20:57

learn to use real pointers faggot

Name: Anonymous 2012-08-15 1:51

>>3
This is seriously the worst advice I've ever seen. So bad I need to bump for people to see this faggot.

Name: Anonymous 2012-08-15 2:10

>>4
back to /g/

Don't change these.
Name: Email:
Entire Thread Thread List