Created
July 13, 2019 08:32
-
-
Save veselink1/f4e2fa94bda0514631753f13a9b93f9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REFLECT_TYPE(Point) | |
REFLECT_FIELD(x) | |
REFLECT_FIELD(y) | |
REFLECT_END | |
/* Generated code */ | |
template<> struct TypeInfo<Point> { | |
template <size_t, typename> | |
struct MemberInfo; | |
static constexpr size_t MemberIndexOffset = 13 /* example value */ + 1; | |
template <typename Dummy> | |
struct MemberInfo<14 /* next counter */ - MemberIndexOffset> | |
{ | |
}; | |
template <typename Dummy> | |
struct MemberInfo<15 /* next counter */ - MemberIndexOffset> | |
{ | |
}; | |
static constexpr size_t MemberCount = 16 /* next counter */ - MemberIndexOffset; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment