Open PDoakORNL opened 5 years ago
I think for template base class, this is useful to avoid the long template base class name when accessing base class members. In the case of non template base class, I think this is optional right? Could you point somewhere in the source code as a real example?
You should not do this if you don't have a templated base class or MI ambiguity.
An example of what? Use the type naming convention well? We do well with classes.
Examples of type aliases for template base class in:
I propose the following, which is compatible with our current coding conventions. Recall type should be the only entities with leading caps.
Multiple inheritance (MI) case, only necessary if there is ambiguity template
class Derived : public A, B
{
using BaseA = A;
using BaseB = B;
...
}