F
Frank Neuhaus
Hey,
I'll get right to the issue (which is admittedly minor...):
Made up example (does not make sense):
#define SOMETHING \
public: \
???* getInst() { return this; }
class MyClass
{
SOMETHING
};
Just curious: Is there anything (unrelated to MyClass) I can put instead of
??? to make this work? Some boost tricks maybe that I haven't found so far?
(I'm aware you can do it with SOMETHING(MyClass), or by deriving from a
template class etc... I am interested in exactly this case)
Thanks
Frank
I'll get right to the issue (which is admittedly minor...):
Made up example (does not make sense):
#define SOMETHING \
public: \
???* getInst() { return this; }
class MyClass
{
SOMETHING
};
Just curious: Is there anything (unrelated to MyClass) I can put instead of
??? to make this work? Some boost tricks maybe that I haven't found so far?
(I'm aware you can do it with SOMETHING(MyClass), or by deriving from a
template class etc... I am interested in exactly this case)
Thanks
Frank