Skip to content

Cannot able to get private member behind base class #9

@schaumb

Description

@schaumb

example:

using VD = std::variant<double, std::string_view>;
template struct access_private::access<&VD::_M_index>; 

... 

VD vd;
accessor<"_M_index">(vd); // fail, because this member is hidden behind private base class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions