Why does C++ need the scope resolution operator?
Because someone in the C++ standards committee thought that it was a good idea to allow this code to work: struct foo { int blah; }; struct thingy { int data; }; struct bar : public foo { thingy foo; }; int main() { bar test; test.foo.data = 5; test.foo::blah = 10; return 0; } … Read more