www.digitalmars.com         C & C++   DMDScript  

c++.beta - template constructor can't have base class in namespace

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