We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yalantinglibs/thirdparty/iguana/iguana/reflection.hpp
Lines 645 to 648 in f05e5c9
Lines 573 to 579 in f05e5c9
@qicosmos as above codes show, it may produce many symbols declare in user namespace if many structures need reflection.
possible solution:
#define REFLECTION(T, arg) \ constexpr auto meta_info(T) { \ struct impl { \ constexpr const char* props() const { return #arg; } \ }; \ return impl{}; \ } REFLECTION(int, age) REFLECTION(char, pname) std::cout << meta_info(int{}).props() << std::endl; std::cout << meta_info(char{}).props() << std::endl;
The text was updated successfully, but these errors were encountered:
Acctually the main code is a a function now,
Line 555 in f05e5c9
Sorry, something went wrong.
MAKE_META_DATA_IMPL
arr_##STRUCT_NAME is outside of MAKE_META_DATA_IMPL.
arr_##STRUCT_NAME
Thank you, I will fix it later.
No branches or pull requests
Search before asking
What happened + What you expected to happen
yalantinglibs/thirdparty/iguana/iguana/reflection.hpp
Lines 645 to 648 in f05e5c9
yalantinglibs/thirdparty/iguana/iguana/reflection.hpp
Lines 573 to 579 in f05e5c9
@qicosmos as above codes show, it may produce many symbols declare in user namespace if many structures need reflection.
Reproduction way
Anything else
possible solution:
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: