От: | _nn_ | www.nemerleweb.com | |
Дата: | 18.04.10 09:43 | ||
Оценка: |
auto f0 = [](int x) { return [=](int y) { return x + y; }; };
error C3499: a lambda that has been specified to have a void return type cannot return a value
auto f1 = [](int x) -> std::function<int(int)> { return [=](int y) { return x + y; }; };