Skip to content

Instantly share code, notes, and snippets.

@veselink1
Created July 13, 2019 08:32
Show Gist options
  • Save veselink1/f4e2fa94bda0514631753f13a9b93f9b to your computer and use it in GitHub Desktop.
Save veselink1/f4e2fa94bda0514631753f13a9b93f9b to your computer and use it in GitHub Desktop.
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