Skip to content

Commit dda89e0

Browse files
Merge pull request MicrosoftDocs#5699 from MicrosoftDocs/main638915222330390955sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents e15e16d + 67a0252 commit dda89e0

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2274.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,4 @@ helpviewer_keywords: ["C2274"]
1313

1414
A type appears as the right operand of a member-access (.) operator.
1515

16-
This error can be caused by trying to access a user-defined type conversion. Use the keyword **`operator`** between the period and `type`.
17-
18-
## Example
19-
20-
The following example generates C2286:
21-
22-
```cpp
23-
// C2274.cpp
24-
struct MyClass {
25-
operator int() {
26-
return 0;
27-
}
28-
};
29-
30-
int main() {
31-
MyClass ClassName;
32-
int i = ClassName.int(); // C2274
33-
int j = ClassName.operator int(); // OK
34-
}
35-
```
16+
This error can be caused by trying to access a user-defined type conversion. Use the keyword **`operator`** between the period and `type`.

docs/error-messages/compiler-errors-1/compiler-error-c2289.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A type declaration or definition uses a type qualifier (**`const`**, **`volatile
1515

1616
## Example
1717

18-
The following example generates C2286:
18+
The following example generates C2289:
1919

2020
```cpp
2121
// C2289.cpp

0 commit comments

Comments
 (0)