Is it possible to use the using keyword for aliasing a template template parameter?
template <template<int> class T>
struct Foo {
using type = T;
};
Thanks
using (or typedef) always provide an alias for a type, never for an higher-kinded type (template template parameter). What you can do is templatize the alias itself on the int:
template <template<int> class T>
struct Foo {
template <int X>
using type = T<X>;
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With