class c0{};
class c1: public c0
{
int m;
};
class c2: public c0
{
char m;
};
class a {
a();
template<typename T>
void set( T FuncArg )
{
// how can I declare a variety number of new objects of type T as a member object within an instance of class a compile time??
}
int ()
{
a Test;
Test.template set<c1>(c1 C1);
Test.template set<c1>(c2 C2);
}
};
// how can I declare a variety number of new objects of type T as a member object within an instance of class a compile time??