~/talk

Embracing PODs Safely Until They Die

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 10:30· Online B, online· [rust]
links:none on file
links:none on file
slides:none on file

Deep dive into when C++ types really behave like C data and what can go wrong with concrete code and working demos. Shows a concrete reinterpret_cast trick that relies on standard-layout guarantees to read private members, a tested double ganger union pattern to produce a C-compatible struct copy passed into C, and precise distinctions between trivially copyable and trivially copy_constructible. Examples compile and run but are explicitly labeled conditionally safe and brittle if triviality or lifetime rules change.

AI-written summary · about

  1. 0:00Intro
  2. 0:38Book
  3. 1:47What does it do
  4. 3:38Structure
  5. 5:28PODs
  6. 6:42Plain Old Data
  7. 14:50Use Cases
  8. 23:03POD Definitions
  9. 26:20Use Case
  10. 43:45Trivia
  11. 47:38walkthrough
  12. 49:29highlights
  13. 51:08what to keep in mind
  14. 52:28questions
~/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.