c++11 - Aliasing a template template parameters -
is possible use using
keyword aliasing template template parameter?
template <template<int> class t> struct foo { using type = t; };
thanks
using
(or typedef
) provide alias type, never higher-kinded type (template template parameter). can templatize alias on int
:
template <template<int> class t> struct foo { template <int x> using type = t<x>; };
Comments
Post a Comment