~/talk

Errors: forgotten, but not gone

Talkat C++Now 2017 · 2017-05-15..05-20· [software-architecture, c-and-cpp]
links:none on file
slides:none on file

Built a virtual smart card emulator on Windows and discovers errors are a lifetime issue, so implement a RAII-style unique_error that treats an error like a resource: if it is destroyed without being checked it aborts, if checked it can be reset or released to the caller. Provides traits to define initialization and "ok", plus helpers that turn common Windows BOOL+GetLastError patterns into a unique_error; code is on GitHub and the approach catches forgotten checks at runtime.

AI-written summary · about

  1. 0:00Start
  2. 0:45Is it a runtime error?
  3. 1:01Is it a code bug?
  4. 1:35errors need to get a lifetime
  5. 2:55example implementation for a Win32 winerror type
~/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.