How to pass a non static function as argument
How to pass a non static function as argument?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
struct A{
void a(void b()){
b();
}
};
struct B{
void b(){}
B(){
A a;
a.a(b);
}
};
int main(){
B b;
}
|
Thank you for your help!
Last edited on
Topic archived. No new replies allowed.