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

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-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.

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