#include struct fiber { fiber(void (*f)(void)) { f(); } }; void funcion() { std::cout << "1\n"; } int main() { fiber f1(funcion); }