December 24, 2003 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; } |
Copyright © 1999-2021 by the D Language Foundation