OK, this is tricky. I have a function inside a template that returns a
pointer to a function whose space is declared as, "void
Function(void)". To declare this, i use:
template <typename Class>
class MyClass {
public:
void SetOnClose(void (Class::*lptnOnClose)(void));
void (Class::*GetOnClose(void))(void);
};
How do you declare the GetOnClose function, above, outside of the
templete?
Currently, i just use the defined function above to do what I need. I
can declare the SetOnClose function outside of the template just fine.
template <typename Class>
class MyClass {
public:
void SetOnClose(void (Class::*lptnOnClose)(void));
void (Class::*GetOnClose(void))(void) {
do stuff here
}
};
template <typename Class>
void Form<Class>::SetOnClose(void (Class::*lptnOnClose)(void)) {
do stuff here
}