In a class B
inheriting from class A
, it's possible to use a using
declaration to bring members of A
into B
, even templates, like this:
struct A {
template <typename T>
void foo();
};
struct B : private A {
using A::foo;
};
But can it be done for conversion templates?
struct A {
template <typename T>
operator T();
};
struct B : private A {
using A::operator /* ??? */;
};
There seems to be no way of referring to the template by name, but I would love to be proven wrong or get some clarification.