To test for compiler releases or updates in a given version of Visual Studio or after, use the **>=** operator. You can use it in a conditional directive to compare **_MSC_VER** against that known version. If you have several mutually exclusive versions to compare, order your comparisons in descending order of version number. For example, this code checks for compilers released in Visual Studio 2017 and later. Next, it checks for compilers released in or after Visual Studio 2015. Then it checks for all compilers released before Visual Studio 2015:
0 commit comments