Is it possible to retrieve the address of a member structure?
I tried the following code but it doesn't work:
How would you access the address of a member variable or structure or whatever?Code:class SomeClass
{
private:
struct x
{int a
} y;
public:
int struct_address(){return &y;}
}
...
cout << classinstance.struct_address() << endl;