Skip to content

Commit c89da7c

Browse files
authored
Remove function body in example
1 parent 8d566a0 commit c89da7c

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,9 @@ The following sample generates C3550:
1919
```cpp
2020
// C3550.cpp
2121
// compile with: /c
22-
int dummy;
23-
24-
decltype(auto)* func1() { // C3550
25-
return &dummy;
26-
}
27-
28-
decltype(auto)& func2() { // C3550
29-
return dummy;
30-
}
31-
32-
decltype(auto)&& func3() { // C3550
33-
return 123;
34-
}
22+
decltype(auto)* func1(); // C3550
23+
decltype(auto)& func2(); // C3550
24+
decltype(auto)&& func3(); // C3550
3525
```
3626
3727
To resolve the error remove all illegal qualification on `decltype(auto)`.

0 commit comments

Comments
 (0)