Open schaumb opened 6 months ago
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
Currently, it can be a workaround if you know the exact type (#10 if you don't):
If the base class is public, you can query the accessor with the base class.
If the base class is private:
example: