int foo()
{
return 45;
}
int (*foobar)() = nullptr ;
struct Tuna { Tuna(); };
Tuna::Tuna(){
foobar = foo; // this is an error.. gives me an incompatible type
}
int main()
{
foobar = foo ;
Tuna t ;
}
aW50IGZvbygpCnsKCXJldHVybiA0NTsKfQoKaW50ICgqZm9vYmFyKSgpID0gbnVsbHB0ciA7CgpzdHJ1Y3QgVHVuYSB7IFR1bmEoKTsgfTsKClR1bmE6OlR1bmEoKXsKICAgZm9vYmFyID0gZm9vOyAvLyB0aGlzIGlzIGFuIGVycm9yLi4gZ2l2ZXMgbWUgYW4gaW5jb21wYXRpYmxlIHR5cGUKfQoKaW50IG1haW4oKQp7Cglmb29iYXIgPSBmb28gOwoJVHVuYSB0IDsKfQ==