The implementation of the standard has to be done by the compiler. Visual C++ is known as the worst one regarding the implementation of the C++ specification. Nevertheless I guess even your first example will give you a warning on level 4. But what about another compiler? Besides that I can force every warning to become an error in Visual C++...Quote:
Originally posted by stober
You're right. Such a simple thing to prove -- this compiles ok with VC6...
But the discussion was not about the intelligence of any compiler, it was about a simple specification issue. And as I and other already said it is pretty easy. It MUST be defined. Always. As stated in the book 'The C++ Programming Language'. Written by the inventor of C++. Period.
I could also ask another question...Why would I declare a static member variable without using it??? It would be just like buying a car without having a driver's license...
