~/talk

Serialization in C++ has never been easier! But wait, there's more

Talkat C++ on Sea 2020 · 2020-07-15..07-17· [c-and-cpp]
links:none on file
slides:none on file

Demonstrates how Proposal P1717 plus upcoming reflection and consteval/meta facilities produce an automatic JSON serializer that prints ints, strings, vectors, optionals and nested structs without per-type iterate_members boilerplate. Uses compile-time meta: count data members, get nth member name, unqual_id/unquote and fragment injection to generate code, and metaclasses to add members or make types noncopyable/movable. Runs on a prototype hosted at cppx.godbolt.org (log3/meta); several features (template value reflection, some injections) are still incomplete but the serializer demo works.

AI-written summary · about

  1. 0:00Start
  2. 17:27Serialization only using reflection
  3. 22:24Unquote operator
  4. 24:04Fragment requirements
  5. 26:27Class fragment
  6. 28:22Enum fragment
  7. 30:30Namespace fragment
  8. 37:03Metaclasses
~/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.