Skip to content

Commit 6c6c176

Browse files
authored
Add example of correction
1 parent c89da7c commit 6c6c176

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3550.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ The following sample generates C3550:
2222
decltype(auto)* func1(); // C3550
2323
decltype(auto)& func2(); // C3550
2424
decltype(auto)&& func3(); // C3550
25+
26+
auto* func4(); // OK
2527
```
2628
27-
To resolve the error remove all illegal qualification on `decltype(auto)`.
29+
To resolve the error remove all illegal qualification on `decltype(auto)`. For instance, `decltype(auto)* func1()` can be turned into `auto* func1()`.
2830
2931
## See also
3032

0 commit comments

Comments
 (0)