I have to build project using MSVC2012 and v100 platform toolset (from MSVC2010). Unfortunately I\'m using C++11 feature \"range based for\" across the code. I wonderin
I encountered the same problem and added my own preprocessor definition for _MSC_PLATFORM_TOOLSET
.
In the project properties in
add _MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion) to make Visual Studio integrate the current Toolset's version to the preprocessor so that your query
#if (_MSC_PLATFORM_TOOLSET > 100)
...
#endif
will finally work.