VS2017 기준 : C++ 17 활성화 옵션
프로젝트 속성페이제어서 다음처럼 원하는 C++ 버전을 선택해주면 된다
Add to Additional options in Project Settings: /std:c++latest
to enable latest features - currently C++17 as of VS2017, VS2015 Update 3.
https://blogs.msdn.microsoft.com/vcblog/2016/06/07/standards-version-switches-in-the-compiler/
/permissive-
will disable non-standard C++ extensions and will enable standard conformance in VS2017.
https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/
EDIT (Nov 2017): Latest VS2017 features are documented here: https://docs.microsoft.com/en-gb/cpp/build/reference/std-specify-language-standard-version
VS2017 supports now: /std:[c++14|c++17|c++latest]
and these flags can be set via the project's property pages:
To set this compiler option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Working with Project Properties.
- Select Configuration Properties, C/C++, Language.
- In C++ Language Standard, choose the language standard to support from the dropdown control, then choose OK or Apply to save your changes.
https://stackoverflow.com/questions/41308933/how-to-enable-c17-compiling-in-visual-studio
'프로그래밍(Programming) > c++, 11, 14 , 17, 20' 카테고리의 다른 글
std::remove_reference (0) | 2019.12.31 |
---|---|
[C++11] emplace 함수에 생긴 변화 (0) | 2018.05.23 |
Rvalue References: C++0x Features in VC10, Part 2 (0) | 2018.04.29 |
RVO(Return Value Optimization), NRVO(Named Return Value Optimization) (0) | 2018.04.28 |
메모리관점에서 본 전역(global)변수와 정적(static)변수의 차이 (0) | 2018.02.16 |