~/talk

Reflection Techniques in C++

Talkat CppCon 2015 · 2015-09-21..09-25· [compilers-and-language-design]
links:none on file
slides:none on file

Survey of concrete techniques: uses Boost.Fusion and Boost.Hana to adapt structs, get member names, zip names with values and produce XML; builds a prototype ORM that emits CREATE TABLE SQL with max-length and primary-key annotations and type-to-SQL mapping via simple traits; shows a visitor pattern with attribute search to select only primary-key fields; supplies a DIY reflectable macro that generates a left-to-right for_each using initializer-list expansion. All examples compile and code is posted (conference repo / GitLab).

AI-written summary · about

  1. 0:00Introduction to reflection
  2. 1:45Compile-time reflection focus
  3. 2:49Uses of reflection techniques
  4. 5:44Boost Fusion technique
  5. 12:31Associative sequences in Boost Fusion
  6. 15:42Adding attributes to fields
  7. 22:28Visitor pattern for reflection
  8. 29:17Selective visitation with attributes
  9. 33:05DIY reflection macro
  10. 41:23Summary and Q&A
~/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.