www.digitalmars.com         C & C++   DMDScript  

c++.beta - default template template parameter declare!

template <class T> struct Templ{};

//declare
template <class T, template <class> class Te = Templ >
struct Test;   

//define
template <class T, template <class> class Te >
struct Test{  };


int main(){
Test<int> one; //compiler notices second parameter missing,
// but it has default one
return 0;
}

thank you, walter!
Dec 05 2003