~/talk

“The Quiet Little Gem in Modern C++: <system_error>”

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

Claim: std::error_code is the right, tiny (≈16‑byte) handle for error interchange — use enumerations as the contract and libraries implement an error_category single‑ton to attach strings and mappings. It ships with Boost Asio and the filesystem/networking TS, preserves platform‑specific detail non‑lossily, and lets modules map domains to common codes (POSIX errc) for interoperability. std::error_condition is rarely needed; an error_code API is simple to add (ten‑to‑fifteen minutes) and it works.

AI-written summary · about

  1. 0:00Introduction to system_error
  2. 10:15Error codes vs messages
  3. 20:50Event notification with enums
  4. 30:09Handle-in-context pattern
  5. 40:00Library author implementation
  6. 50:36Using error_code as user
  7. 1:02:28Q&A and closing remarks
~/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.