'Define type alias between template and class declaration in order to inherent from it
I have a class template which uses some type alias through its implementation, and also inherits from the same type:
template<typename TLongTypename,
typename TAnotherLongTypename,
typename THeyLookAnotherTypename>
class A : SomeLongClassName<TLongTypename,
TAnotherLongTypename,
THeyLookAnotherTypename>
{
using Meow = SomeLongClassName<TLongTypename,
TAnotherLongTypename,
THeyLookAnotherTypename>;
// ... (using Meow a lot)
};
Naturally I want to inherit from the type alias Meow and not from the long name. Is there any nice way to do that, hopefully such that Meow will be defined inside the template scope but before the class scope?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
