Quote:
Originally Posted by asadullah.ansari
If It is true then Why g++ is not supporting ??? Can You give me reason???
Where to even start. Firstly, the code you posted does not even demonstrate the point you're trying to make. The call in main() should be b->F() with no parameter. In g++ this correctly gives 10. With the parameter, it had better give 2 in Visual Studio like it does in g++, because that is what you are passing; you are not requesting the default.
Secondly, aaaaaaaaaaaarrrrrrrrrrrrgggggggghhhhhh!!!!
Sorry, my brain exploded.