~/talk

observe me not - a short story about smart pointers

Talkat CppCon 2019 · 2019-09-15..09-20· [c-and-cpp]
links:none on file
slides:none on file

Shows that taking a smart pointer by const reference causes an extra dependent load and that the cheap fix is to accept a raw pointer at the callee. Implements a ref-qualified conversion operator on the smart-pointer type so only lvalues implicitly convert to T*, preventing accidental capture of temporaries. Cites historical MSVC behavior and Mozilla RefPtr, notes the approach reduces overhead and keeps call sites clean but warns about captures, coroutines and ternary-operator temporaries that still require .get().

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.