नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
if a trailing return type is used then the leading return type shall be the single type-specifier 'auto' (not 'type')
Remarks
The leading return type in trailing return type syntax must contain only auto.
Example
The following example generates C3551:
// C3551.cpp
// compile with: /c
const auto func1() -> const int; // C3551
auto* func2() -> int*; // C3551
auto& func3() -> int&; // C3551
auto&& func4() -> int&&; // C3551
decltype(auto) func5() -> int; // C3551
auto func6() -> int; // OK