c++.beta - template template parameter issue 2
- nyra (18/18) Oct 06 2003 I'm not very sure following code is legal, but seems to be!
I'm not very sure following code is legal, but seems to be! namespace NS{ template <typename ONE> class some{ }; } template <template <class> class TT, class T = int> struct RealUse{ typedef TT<T> type; // the reason I use template template parameter }; int main(int argc, char *argv[]) { RealUse<NS::some> a; //error //this code work use NS::some; RealUse<some> a; return 0; }
Oct 06 2003