1
int main()
{
    void(*fp1)() =  []{}; // ok
    void(*fp2)() = +[]{}; // also ok
}

I cannot find any explanation in cppreference.com on the meaning of sign + in front of the lambda.

What is the exact meaning of sign + here as per the C++ standard?

xmllmx
  • 37,882
  • 21
  • 139
  • 300

0 Answers0