The other mechanism that the standard offers to construct closures is
std::bind. lambda expressions are generally easier to use though,
particularly for partial function application: partial function
application requires using std::placeholders with std:bind. (This issue
does not apply to std::packaged_task of course, which requires a fully
closed-over function object when constructed.)
Chris