Hi, I have a beginner's question here:
I have a header file that contains something like:
class MyClass {
public:
using customType = SomeClass::templateMethod<int 'n'>;
static customType typeInstance;
static void method;
...
}
And in my .cpp file, I have:
using customType = SomeClass::templateMethod<int 'n'>;
customType MyClass::typeInstance
void MyClass::method() {
SomeClass::utility<MyClass::customType>;
SomeClass::utilityMethod(typeInstance);
}
It compiles, so that's not the issue, but having to duplicate 'customType' and 'typeInstance' seems weird to me... Should I be doing someth…