This avoids the double indirection of shared_ptr<t>& and the surprise of someone mutating the const& parameter you assumed was constant.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Sufficiently advanced C++ is indistinguishable from trolling.
- End of conversation
New conversation -
-
-
No no, c++ needs *fewer* features ;)
-
agree with that
- 1 more reply
New conversation -
-
-
Let's go for const&&&&&&&&&&&. Better safe than sorry
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Come on, c++ needs to be replaced by rust, it has enough already, in 5 years the spec will be bigger than the bible
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.