c++.beta - template constructor can't have base class in namespace
- nyra (15/15) Dec 23 2003 namespace TT{
namespace TT{ class Base{ }; } template <class T> class TemplateCtor : public TT::Base{ //TemplateCtor is not a template class? public: TemplateCtor(){} template <class T1> TemplateCtor(T1 one): TT::Base(){} }; int main(void){ TemplateCtor<int> one(1); return 0; }
Dec 23 2003