Skip to content

Cannot use rfl::DefaultVal and rfl::Field together in one strcut #685

Description

@Liclute

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] |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions