std::function is useful in some situations, but "without putting all my code into headers" is not a good argument.
std::function is useful in some situations, but "without putting all my code into headers" is not a good argument.