c++.beta - default template template parameter declare!
-
nyra
(13/13)
Dec 05 2003
template
struct Templ{};
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