boostorg / pfr

std::tuple like methods for user defined types without any macro or boilerplate code
https://boost.org/libs/pfr
Boost Software License 1.0
1.34k stars 161 forks source link

support c-style arrays #189

Open p00f opened 1 month ago

p00f commented 1 month ago

this tries to implement the solution in #170, with one change: I saw some "must be aggregate initializable" errors so I added another case depending on std::is_aggregate_v<T>

p00f commented 1 month ago

the tests still fail though: test.log

yrashk commented 1 month ago

Very interested in seeing this through, let me know if I can help in any way!

apolukhin commented 1 month ago

the tests still fail though:

std::is_aggregate is not available in C++14, but just ignore that issue for now. Make sure that the PR builds in С++20 or C++17 mode. Any modern enough compiler is fine for that, clang-18 is fine.