नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
expected '->' before the return type
Remarks
You must provide -> before the return type of a lambda expression.
To correct this error
- Provide
->before the return type.
Example
The following example generates C3484:
// C3484a.cpp
int main()
{
return []() . int { return 42; }(); // C3484
}
The following example resolves C3484 by providing -> before the return type of the lambda expression:
// C3484b.cpp
int main()
{
return []() -> int { return 42; }();
}