www.digitalmars.com         C & C++   DMDScript  

c++.beta - template template default parameters issue!

template <class T>
class TMPL{
};

template < template <class > class some = TMPL,
   class T = int
    >
class CT1 {

};

template < int i = 2,
   template <class > class some = TMPL
    >
class CT2 {

};
template < int i,
   template <class > class some = TMPL
    >
class CT3 {

};
int main(int argc, char *argv[])
{
 CT1<> ct1; //error
 CT2<> ct2; //error

 CT3<0> ct3; //error

 return 0;
}

extract from Loki library!

It seems a long way to support template template parameter!
Don't give up, Walter!
Oct 06 2003