Skip to content

Update compiler-error-c3533.md #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/error-messages/compiler-errors-2/compiler-error-c3533.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ ms.workload: ["cplusplus"]
1. Remove the `auto` keyword from the parameter declaration.

## Example
The following example yields C3535 because it declares a function parameter with the `auto` keyword and it is compiled with **/Zc:auto**.
The following example yields C3533 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
void f(auto j) {} // C3533
```

## Example
The following example yields C3535 because it declares a template parameter with the `auto` keyword and it is compiled with **/Zc:auto**.
The following example yields C3533 in C++14 mode because it declares a template parameter with the `auto` keyword and it is compiled with **/Zc:auto**. (In C++17, this is a valid definition of a class template with a single non-type template parameter whose type is deduced.)

```
// C3533b.cpp
// Compile with /Zc:auto
template<auto T> class C{}; // C3533
template<auto T> class C {}; // C3533
```

## See Also
[auto Keyword](../../cpp/auto-keyword.md)
[/Zc:auto (Deduce Variable Type)](../../build/reference/zc-auto-deduce-variable-type.md)
[/Zc:auto (Deduce Variable Type)](../../build/reference/zc-auto-deduce-variable-type.md)