↧
Answer by ForEveR for How to know the template type in the template constructor
Just this should work.this->_tab = new T[x];
View ArticleHow to know the template type in the template constructor
here is an exemple :template< typename T >class A {public : A(void) { this->_tab = ???[x]; }private:T* _tab;};I would like to initialize my array with x elements but how to get the type of my...
View Article