How would I use the new operator to create a new instantiation of a template class?
For instance, If I had a template class like
Then I make a pointer likeCode:template <class T> class DumbClass { public: // default constructor DumbClass( ) {} };
how do I dynamically allocate a DumbClass object to dumb, using the new operator--preferably without getting a compiler error?Code:DumbClass<int>* dumb;