I have a class that looks something like this:
template<int SIZE>
class MyClass{
public:
MyClass(int a, int b){}
}
and I want an instance of MyClass in another class:
class X{
MyClass<10>?? // How do I pass values to constructor args a and b?
}
but I'm not sure how to pass arguments to a constructor with two arguments when declaring an object as a member variable?
source
share