template type's ctor arguments at instantiation time

Posted by Joe Steeve on Stack Overflow See other posts from Stack Overflow or by Joe Steeve
Published on 2010-04-10T22:53:58Z Indexed on 2010/04/10 23:03 UTC
Read the original article Hit count: 114

Filed under:
|
template <typename T>
class A
{
public:
   T t;
   void Do (void)
   {
      t.doSomething();
   }
}

In the above, how do I supply parameters to the constructor of 't'??

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates