Any "safe" subset of C++ will have to ban non-static methods, because "this" is an unsafe pointer.
@comex Deletion of the object could occur by e.g. calling clear() on the array that's holding the sole unique_ptr ref to it.
-
-
@pcwalton Oh, good point. :)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton you can work around this by having operator-> on the smart ptr return a temporary object which has its own operator->Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton but of course this would slow down unique_ptr.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.