Код: Выделить всё
#include
#include
#include
std::tuple f() {
return { "4", "5", "6", "7" };
}
int main()
{
auto cbf = []() {
static auto cb = []() {
bug:
auto [a, b, c, d] = f();
c = d;
};
};
}
Также кажется, что должна также присутствовать метка (
Код: Выделить всё
bugОшибки:
Код: Выделить всё
'd' cannot be implicitly captured because no default capture mode has been specified
'c' cannot be implicitly captured because no default capture mode has been specified
Подробнее здесь: https://stackoverflow.com/questions/797 ... ed-binding
Мобильная версия