Created
January 31, 2013 00:30
-
-
Save ashgti/4678772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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