veselink1 / refl-cpp

Static reflection for C++17 (compile-time enumeration, attributes, proxies, overloads, template functions, metaprogramming).
https://veselink1.github.io/refl-cpp/md__introduction.html
MIT License
1.08k stars 77 forks source link

Does it support C-style fixed-length array in type metadata definitions? #87

Open cpp-fun opened 3 months ago

cpp-fun commented 3 months ago
struct A
{
//    double vals[3];   // Is it possible to support it?
    std::array<double, 3> vals;
};

REFL_AUTO(
    type(A, Table{"A"}),
    field(vals, Column{"vals", DataType::ARRAY}, serializable())
)
veselink1 commented 2 months ago

What error are you seeing?