4 ms·
That's surprisingly concise and not too hackish, especially compared to some other techniques I've seen for adding basic reflection to your C++ classes.
by TillE 13y ago
That's surprisingly concise and not too hackish, especially compared to some other techniques I've seen for adding basic reflection to your C++ classes.
- matt42 13y agoThis is thanks to the C++11 variadic templates that symplifies (a lot) the writting of such abstractions. The object model is only 100 lines of C++11: https://github.com/matt-42/iod/blob/master/iod.hh https://github.com/matt-42/iod/blob/master/iod.hh