3 ms·
I have no idea if it is in the standard, but this actually compile with gcc 4.9 -std=c++1y auto obj = [ x=1, y="foo" ]{}; obj.x; obj.y;
by matt42 12y ago
I have no idea if it is in the standard, but this actually compile with gcc 4.9 -std=c++1y
auto obj = [ x=1, y="foo" ]{};
obj.x;
obj.y;