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::*lptnOn Close)(void));
void (Class::*GetOnC lose(void))(voi d);
};
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::*lptnOn Close)(void));
void (Class::*GetOnC lose(void))(voi d) {
do stuff here
}
};
template <typename Class>
void Form<Class>::Se tOnClose(void (Class::*lptnOn Close)(void)) {
do stuff here
}
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::*lptnOn Close)(void));
void (Class::*GetOnC lose(void))(voi d);
};
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::*lptnOn Close)(void));
void (Class::*GetOnC lose(void))(voi d) {
do stuff here
}
};
template <typename Class>
void Form<Class>::Se tOnClose(void (Class::*lptnOn Close)(void)) {
do stuff here
}
Comment