Skip to content

bon::private::Set is qualified in compiler errors while Unset is not #129

@taladar

Description

@taladar

I am not quite sure what causes that but I a got an error that said (in the full type name file written by the compiler)

OrderLogBuilder<(bon::private::Set<i32>, bon::private::Set<i32>, bon::private::Set<std::string::String>, Unset<bon::private::Required>, Unset<bon::private::Optional>, Unset<bon::private::Optional>, Unset<bon::private::Required>, Unset<bon::private::Required>, bon::private::Set<std::string::String>, bon::private::Set<std::string::String>)>

I assume Unset is missing a qualifier in some part of the generated code where Set has one.

This came up when I tried to check the type of a partially constructed builder so I can pass it into a function, a use case which I assume is not supported yet judging by the bon::private module path? It does seem useful now that those can be cloned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions