4 ms·You could also do void foo(std::function<void(int)> callback);by quinnftw 10y agoYou could also do void foo(std::function<void(int)> callback);