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:
Remco Vermeulen
2021-01-26 13:08:28 +01:00
committed by GitHub
parent 76e1e4d668
commit 932ee968e0

View File

@@ -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
* ```
*/