CMake/Tests/CompileFeatures/cxx_lambda_init_captures.cpp

7 lines
89 B
C++

int someFunc()
{
int a = 0;
return [b = static_cast<int&&>(a)]() { return b; }();
}