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
demo code like this
#include "boost/pfr.hpp" struct some_person { float data[3]; }; int main(int argc, const char* argv[]) { auto name = boost::pfr::names_as_array<some_person>(); }
The text was updated successfully, but these errors were encountered:
Incorrectly defines structures with nested arrays. If the arrays are length of 1, then everything works correctly.
struct { float arr1[3]{}; float arr2[3]{}; } array1; float array2[3][2]{}; qWarning() << pfr::tuple_size_v<decltype(array1)>; // 6 qWarning() << pfr::tuple_size_v<decltype(array2)>; // 6
Sorry, something went wrong.
@baker-Xie @XRay3D did you find a solution or a non-boost way to do this? i want the name + value of struct fields
Try use std::array.
std::array
that is not an option - i don't control the structs i'm reflecting on 😅
No branches or pull requests
demo code like this
The text was updated successfully, but these errors were encountered: