~/talk

Reflection without Reflection TS

Talkat Meeting C++ 2022 · 2022-11-17..11-19· [rust]
links:none on file
slides:none on file

A catalogue of concrete techniques and limits appears: template specialization and SFINAE check pointer/array/polymorphic properties; dynamic_cast to void for a polymorphism test works but relies on standard corner cases; enum names come from __PRETTY_FUNCTION__/SourceLocation so it is implementation‑defined and MagicEnum wraps it; member counting and types use aggregate‑init recursion to count members and an implicit‑conversion any to deduce types* and it works but is fragile; clang trunk exposes dump_struct for names at compile time.

AI-written summary · about

  1. 0:00Introduction
  2. 3:59Template/function specialization
  3. 5:45template argument deduction
  4. 8:13Reflection technique #1: SFINAE
  5. 19:45std::source_location::function_name
  6. 22:34Struct reflection: counting the number of members
  7. 26:58structured bindings
  8. 28:46Struct reflection: std::tuple for struct's members
  9. 34:15clang's __builtin_dump_struct
  10. 35:11Checking if you are using tabs or spaces
~/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.