Hi

I have a problem that depends on template class. I have declaration of class, for example:

template<typename T> class A;

And I want to create a variable, but I want to decide later what will be template argument (user will be able to select between int, float etc). I can't find good solution, i tried pointer:

A *instance;

and later: instance = new A<float>(); but there is compiler error in declaration(missing template argument). I also tried void pointer, it works with creating objects, but later I'm unable to call any method from class A.

If you have some idea please help me