~/talk

(don't) Copy Paste All The Things

Talkat CppCon 2017 · 2017-09-24..09-29· [rust]
links:none on file
slides:none on file

Argument: copying a boilerplate move constructor without noexcept and without thinking about destructor behavior leads to real bugs. Example: operator move assign invokes a destructor that throws, unwinds past the intended catch, and an exception-on-construction path produces a double free when cleanup runs. The demonstrator uses a small main and catches nothing useful, reproduces heap corruption, and finds the issue with AddressSanitizer.

AI-written summary · about

  1. 0:00Start
  2. 0:32And I was thinking
  3. 1:27Fun case #1: throwing destructor
  4. 1:52Test Driver
  5. 2:03And that's what happens
  6. 2:37Fun case #2: exception on construction
~/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.