MSVC toolset 14.1+: Set /permissive- when CXX_EXTENSIONS==OFF?
VS2017 (both cl (compiler) version 19.10 and 19.11) have a
/permissive- flag that puts them into standard-conforming mode, i.e. disallowing MSVC-specific C++ language extensions. It may make sense to set this flag if
CMAKE_CXX_EXTENSIONS is set to
This discussion emerged out of #16482 (closed).