No. E' sempre obbligatorio indicare ogni parametro template.Originariamente inviato da giuseppe500
č possibile?
Puoi comunque fare:
codice:template <class X, class Y> struct data_types { typedef X type1; typedef Y type2; }; template <class X, class Y> struct UseTypes { typedef typename X::type1 type1; typedef typename X::type2 type2; typedef typename Y::type1 type3; typedef typename Y::type2 type4; }; UseTypes<data_types<int,char>,data_type<long,double>> foo;