Skip to content

Heterogenous multi-visitation ? #22

@jcelerier

Description

@jcelerier

Hello,

Is there a way to make multi-visitation with apply() & multiple variant types ?

e.g.

eggs::variant<int, float> v1;
eggs::variant<foo, bar> v2;

struct vis { 
    void operator()(int, foo);
    void operator()(int, bar);
    void operator()(float, foo);
    void operator()(float, bar);
};

eggs::variants::apply(vis{}, v1, v2);

thanks !

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