define struct like:
struct A {
rfl::Field<"a", int> a;
rfl::Field<"b", rfl::DefaultVal> b = 1;
};
will get error:
Parser_default.hpp:695:10: error: could not convert '()' from '' to 'rfl::Field<rfl::internal::StringLiteral<2>{std::array<char, 2>{"a"}}, int>'
auto t = T{};
[build] | ^
[build] | |
[build] |
define struct like:
struct A {
rfl::Field<"a", int> a;
rfl::Field<"b", rfl::DefaultVal> b = 1;
};
will get error:
Parser_default.hpp:695:10: error: could not convert '()' from '' to 'rfl::Field<rfl::internal::StringLiteral<2>{std::array<char, 2>{"a"}}, int>'
auto t = T{};
[build] | ^
[build] | |
[build] |