You have to set for every single project.
-
right click on project and open
Property
/C/C++
/Language
/C++ Language Standard
, then choose the version you want. -
click
C/C++
/Command Line
and add the following line toAdditional Options
:/Zc:__cplusplus