| title |
Compiler Error C3533 | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
error-reference |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
|
| ms.assetid |
a68b1ba5-466e-4190-a1a4-505ccfe548b7 |
| caps.latest.revision |
6 |
| author |
corob-msft |
| ms.author |
corob |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
'type': a parameter cannot have a type that contains 'auto'
A method or template parameter cannot be declared with the auto keyword if the default /Zc:auto compiler option is in effect.
- Remove the
auto keyword from the parameter declaration.
The following example yields C3535 because it declares a function parameter with the auto keyword and it is compiled with /Zc:auto.
// C3533a.cpp
// Compile with /Zc:auto
void f(auto j){} // C3533
The following example yields C3535 because it declares a template parameter with the auto keyword and it is compiled with /Zc:auto.
// C3533b.cpp
// Compile with /Zc:auto
template<auto T> class C{}; // C3533
auto Keyword
/Zc:auto (Deduce Variable Type)