Does Boost Lambda / Phoenix support out of the box something like a lambda that returns another lambda?
For example, this can be used to do some kind of currying:
std::cout << [](int x){return [=](int y){return x+y;};}(1)(2);
How to achieve a similar goal with Boost Lambda / Phoenix (+ as a bonus - we get polymorphic behavior)?
source share