_ Msc_ver defines the version of the compiler. The following are the _ msc_ver values of some compiler versions (see references 2 in extended reading)
Ms vc ++ 10.0 _ msc_ver = 1600
Ms vc ++ 9.0 _ msc_ver = 1500
Ms vc ++ 8.0 _ msc_ver = 1400
Ms vc ++ 7.1 _ msc_ver = 1310
Ms vc ++ 7.0 _ msc_ver = 1300
Ms vc ++ 6.0 _ msc_ver = 1200
Ms vc ++ 5.0 _ msc_ver = 1100
Among them, Ms VC ++ 10.0 is Visual C ++ 2010, ms vc ++ 9.0 is Visual C ++ 2008, ms vc ++ 8.0 is Visual C ++ 2005.
You can infer the predefined _ msc_ver value of the current compiler by using the version information of the ms vc ++ compiler currently in use. The value of _ msc_ver is composed of the main version number and secondary version number of the ms vc ++ compiler, where the main version number is ". the first part of the split version number, and the second part of the split version number. For example, assume that the current visual
C ++ compiler version is 15.00.20706.01 (ms vc ++ 2008), the main version is "15", and the minor version is "00 ", therefore, the predefined _ msc_ver macro value of the current compiler is 1500.
Reference: 1. http://baike.baidu.com/view/1276757.htm
2. http://msdn.microsoft.com/en-us/library/b0084kay.aspx