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
  • 39,765
  • 26
  • 162
  • 323

0 Answers0