नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'type': you cannot cast to a type that contains 'auto'
Remarks
You cannot cast a variable to the indicated type because the type contains the auto keyword and the default /Zc:auto compiler option is in effect.
Example
The following code yields C3537 because the variables are cast to a type that contains the auto keyword.
// C3537.cpp
// Compile with /Zc:auto
int main()
{
int value = 123;
auto(value); // C3537
(auto)value; // C3537
auto x1 = auto(value); // C3537
auto x2 = (auto)value; // C3537
auto x3 = static_cast<auto>(value); // C3537
return 0;
}