Skip to content

yanwei1983/static_reflection

Repository files navigation

static_reflection

static_reflection in compiler time

#example


struct Test
{
    int32_t a;
    float b;
    std::string c;
};
DEFINE_META(Test,
            DEFINE_MEMBER(
              META_MEMBER(a),
              META_MEMBER(b),
              META_MEMBER(c));

Test test;
json_to_struct<T>(json, test);


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages