Hello all,
Let's say we have a class, MyParent:
class MyParent
{
public:
template<namespace T>
MyParent()
{
T* Something;
}
};
And a derived class, which uses this constructor:
class MyDerived : public MyParent
{
public:
MyDerived()
: MyParent<int>()
{
}
};
Then I get a compiling error, because there's ambiguity. The compiler thinks that the int is a template argument to the class, not the constructor.
How do I specify that I want the int to be an argument to the constructor?