~/lightning

Lightning Talk: Ref, C++ const ref, immutable ref?

Lightningat CppCon 2022 · 2022-09-11..09-16· [typescript]
slides:none on file

Claims that const reference is read-only view but still points at mutable data and can be changed through globals or const_cast; shows repeated compare checks as concrete evidence. Compares three approaches: copying values (costly), using restrict keyword (breaks when passing elsewhere), and an immutable class makes members const (prevents const_cast but forces lifelong constness). Presents an immutable_ref idea as a proposed type; immutable class is implemented and works but proves inflexible, immutable_ref remains a sketch.

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.