Open
Description
The text says:
"On the other hand, lambdas and function objects don't overload; if you need to overload, prefer a function..".
I was confused by this. The operator() for a "function object" is overloadable. e.g:
struct foo {
void operator()(int) { std::cout << "first" << std::endl; }
void operator()(double) { std::cout << "second" << std::endl; }
};
Can the text be clarified?