Hacker News new | ask | show | jobs
by jfkebwjsbx 2227 days ago
The heap allocation is an implementation detail.

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