mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Correct pointer to data member example
The class `PointerToMemberType` is preceded by an example that doesn't define the variable `c` used to access a data member.
This commit is contained in:
@@ -1546,7 +1546,7 @@ class FunctionPointerIshType extends DerivedType {
|
||||
* ```
|
||||
* class C { int m; };
|
||||
* int C::* p = &C::m; // pointer to data member m of class C
|
||||
* class C *;
|
||||
* class C c;
|
||||
* int val = c.*p; // access data member
|
||||
* ```
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user