difference between c++9(g++ 4.3.2) and c++ 4.0.0-8 [closed]
what is the difference between C++(g++ 4.3.2) and C++ 4.0.0-8 and the best compilers for these.
What you are referring to appear to be version numbers of compilers available on your (unnamed) platform.
C++ proper has no such version numbers. Instead, C++ is defined by ISO standards, generally referred to by their year of ratification. So far we have:
C++-98: The initial standard defining the basic language, including templates, the so- called Standard Template Library, iostreams, etc.
C++-2003: The first revision of the standard, making minor corrections and clarifications to C++-98.
C++-TR1(2005): A (non-normative) technical report suggesting several new additions to the standard library in the std::tr1 namespace. Notably includes boost-developed smart pointers, hash tables (std::tr1::unordered_set, etc.) and other capabilities. These additions are expected to be officially incorporated in the upcoming C++-0x standard.
C++-0x (aka C++-2011): A major extension of the language with functional constructs such as lambda and automatic type determination, as well as significant new library content mostly from boost.
The version numbers you mentioned appear to be release numbers from one or two particular compilers. Generally those versions don't map directly to the C++ standards, but instead to differing (hopefully improving) levels of conformance with particular ISO standards and perhaps optimization capabilities.
精彩评论