visual c++ for loop var scope
Since the only compiler I have ever really used is visual c++, I used to think that it was part of the c++ standard for a variable declared within the initializer statement of a for-loop to have scope outside the for-loop. But I just started reading The C++ Programming Language recently and now I see that this is not the case. Actually, now I prefer to have the reduced scope, so I found the option to disable the setting in the compiler.
But that got me wondering how many people conform to the vc++ default considering the compiler is very popular (at least from my pov)?