is there any problem with such closure implementation (stolen from python hack)
void function(int value) {
struct closure {
closure(int v = value) : value_(value) {}
private: int value_;
};
closure c;
}
upon further investigation, it appears in member functions, local variables can not be used as default values, but object variables can