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
std::cout << ylt::reflection::index_of<&person::age>() << "\n"; std::cout << ylt::reflection::index_of<&person::name>() << "\n";
std::cout << ylt::reflection::index_of<&person::age>() << "\n";
std::cout << ylt::reflection::index_of<&person::name>() << "\n";
expect output 1 0
1
0
The text was updated successfully, but these errors were encountered:
你这个测试代码搞完整一点,person对象是怎么定义的,index的结果哪里不符合预期都写一下。
Sorry, something went wrong.
struct person { std::string name; int age; }; YLT_REFL(person, name, age)
msvc
No branches or pull requests
std::cout << ylt::reflection::index_of<&person::age>() << "\n";
std::cout << ylt::reflection::index_of<&person::name>() << "\n";
expect output
1
0
The text was updated successfully, but these errors were encountered: