~/lightning

Lightning Talk: Static Reflection on the Budget in C++23

Lightningat C++Now 2023 · 2023-05-07..05-12· [c-and-cpp]
links:none on file
slides:none on file

Shows concrete tricks to get usable static reflection with current compilers: turn a struct into a structure-to-tuple using structured bindings and requires, embed the current source and run meta_find on embedded source to locate one struct (demo finds a single Foo), extract its type and instantiate it from the found text, and recover names with a compile-time name extraction hack based on type_name/pretty_function and compile-time strings. All examples compile and run on modern C++23 toolchains.

AI-written summary · about

  1. 0:00Intro
  2. 0:19Tootable
  3. 0:51Embedding
  4. 1:26Magic
  5. 2:16Metafind
~/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.