A Flexible Reflection System in C++: Part 1

from blog Preshing on Programming, | ↗ original
In this post, I’ll present a small, flexible system for runtime reflection using C++11 language features. This is a system to generate metadata for C++ types. The metadata takes the form of TypeDescriptor objects, created at runtime, that describe the structure of other runtime objects. I’ll call these objects type descriptors. My initial...