Implementing function_view is harder than you might think
function_view is a simple type that can refer to any callable without overhead. However, the trivial implementation has issues with temporaries. In this post, we'll implement one that does not have...
foonathan.net