description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3550 | Compiler Error C3550 | 11/04/2016 |
|
| 9f2d5ffc-e429-41a1-89e3-7acc4fd47e14 |
only plain 'decltype(auto)' is allowed in this context
If decltype(auto)
is used as a placeholder for the return type of a function, it must be used by itself. It cannot be used as part of a pointer declaration (decltype(auto)*
), a reference declaration (decltype(auto)&
), or any other such qualification.
The following sample generates C3550:
// C3550.cpp// compile with: /cdecltype(auto)* func1(); // C3550decltype(auto)& func2(); // C3550decltype(auto)&& func3(); // C3550auto* func4(); // OK
To resolve the error remove all illegal qualification on decltype(auto)
. For instance, decltype(auto)* func1()
can be turned into auto* func1()
.