~/talk

Extreme Type Safety with Opaque Typedefs

Talkat CppCon 2015 · 2015-09-21..09-25· [c-and-cpp]
links:none on file
slides:none on file

Library implements opaque typedef library semantics by wrapping existing types via inheritance to create distinct address/offset types, letting code overload and delete operators. It is ~1400 lines, licensed BSD 3-clause, produces zero runtime overhead, and catches real bugs (found a wrong-width integer assignment at compile time). Operators are customizable so address+offset returns address while address-address yields offset. Works on GCC and clang; Visual Studio 2015 had issues.

AI-written summary · about

  1. 0:00Intro
  2. 0:13Motivating Example
  3. 1:09Common Mitigations
  4. 1:52Typedef - good, not great
  5. 3:32Basic Opaque Typedef
  6. 4:16That's pretty good!
  7. 5:09A foundation for more...
  8. 6:22Specifying binary operators
  9. 7:44Straightforward extensions
  10. 9:36I can haz code?
  11. 10:54What I want in exchange
~/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.