Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created January 31, 2013 00:30
Show Gist options
  • Save ashgti/4678772 to your computer and use it in GitHub Desktop.
Save ashgti/4678772 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
class a {
public:
struct dummy { int i; double j; };
typedef int dummy::* _bool;
};
typedef int bar;
int main() {
a::dummy foo;
foo.i = 4;
a::_bool baz = &a::dummy::i;
cout << foo.*baz << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment