~/talk

Reducing immediate dangling?

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

Immediate dangling from temporaries is prevented by ref-qualifying member functions using the C++11 feature, not by vague coding hygiene; examples include taking begin from a temporary vector and binding string_view to a short-lived string. A side-effect destructor test demonstrates undefined behavior where an assignment on a temporary leaves a member set to 42. The concrete suggestion is to ref-qualify getters and even make defaults ref-qualify assignment operators so calls on temporaries fail to compile.

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.