We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9577d89 commit 5ec8f13Copy full SHA for 5ec8f13
1 file changed
docs/error-messages/compiler-errors-1/compiler-error-c2135.md
@@ -19,15 +19,16 @@ The following example generates C2135:
19
20
```cpp
21
// C2135.cpp
22
-struct S {
23
- int i : 1;
24
-};
25
26
-struct T {
27
- int j;
+struct S
+{
+ int bit_field : 1;
+ int integer;
28
};
29
-int main() {
30
- &S::i; // C2135 address of a bit field
31
- &T::j; // OK
+
+int main()
+ &S::bit_field; // C2135
32
+ &S::integer; // OK
33
}
34
```
0 commit comments