MetaStuff
MetaStuff copied to clipboard
Code I use in my game for all serialization/deserialization/introspection stuff
C++17?
I want to start using C++17 for the following reasons: 1) Constexpr if - huge one. Less SFINAE - more readable code, less compile time hacks which made my life...
Namespace 'meta' is way too common, so it can lead to some name conflicts. 'metastuff', maybe? I won't change anything for now, so I'll leave it open for discussion.
If we do: ```cpp struct foo { float data[16]; }; namespace meta { template inline auto registerMembers() { return members(member("data", &foo::data)); } } ``` we get compile error `function returns...
This pr would add std::optional and std::variant serialization/deserialization extension to the Json-cast example files for the cpp17 branch.
I've used the example project to serialize my data containing (amongst other stuff) some floats. After looking at the result I found that I had to write those floats with...
Adds CMakeLists.txt for example for easier compilation. Documentation is being added as we speak, putting code up for review so any changes needed to be made will be made. EnumMember...
I'm trying to compile w/ this version of g++: ```g++ (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 5.3.0.``` The following error is produced: ``` C:\dev\misc\MetaStuff\example\JsonCast.inl:98: error: expected primary-expression before '>' token member.set(obj,...