1class A {2public:3 struct { int foo; } f;4 struct { int foo; } g;5};6 7inline int useA(A &a) {8 return (a.f.foo + a.g.foo);9}10