Skip to content

Commit 3d01207

Browse files
committed
fix(implementation): add _MSVC_LANG information
1 parent add9288 commit 3d01207

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

implementation.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102

103103
| 製品名 | 製品バージョン | Visual C++ バージョン | `_MSC_VER` | `_MSC_FULL_VER` |
104104
|-----------------------------------------------|----------------|-----------------------|----------|---------------|
105-
| Visual Studio 2017(ver15.5) | 15.5 | | 1912 | |
106-
| Visual Studio 2017(ver15.4.5) | 15.4.5 | 14.1 | 1911 | 191125547 |
107-
| Visual Studio 2017(ver15.4.4) | 15.4.4 | 14.1 | 1911 | 191125542 |
108-
| Visual Studio 2017(ver15.3.3) | 15.3.3 | 14.1 | 1911 | 191125507 |
105+
| Visual Studio 2017 | 15.5 | | 1912 | |
106+
| Visual Studio 2017 | 15.4.5 | 14.1 | 1911 | 191125547 |
107+
| Visual Studio 2017 | 15.4.4 | 14.1 | 1911 | 191125542 |
108+
| Visual Studio 2017 | 15.3.3 | 14.1 | 1911 | 191125507 |
109109
| Visual Studio 2017 [^2] | 15.0 | 14.1 | 1910 | 191025017 |
110110
| Visual Studio 2017 RC | | 14.1 | 1910 | 191024930 |
111111
| Visual Studio 2015 Update3 | 14.0 | 14.0 | 1900 | 190024210 |
@@ -173,16 +173,18 @@ https://blogs.msdn.microsoft.com/bharry/2014/01/20/vs-2013-1-update-1-is-availab
173173
https://qiita.com/Chironian/items/1432eb8b59eb2eefcd2d
174174

175175
### C++14の機能を有効にする
176-
- 14.0 Update 2までは、言語のバージョンを切り替える機能はなく、そのリリース時の最新言語バージョンが有効となる
177-
- 14.0 Update 3からは、`/std:c++14`オプションを使用する。とくに指定しない場合はデフォルトでC++14が有効となる
178176

177+
- 14.0 Update 2までは、言語のバージョンを切り替える機能はなく、そのリリース時の最新言語バージョンが有効となる
178+
- 14.0 Update 3からは、`/std:c++14`オプションを使用する。とくに指定しない場合はデフォルトでC++14が有効となる。この時`_MSVC_LANG`マクロが`201402`になる
179179

180180
### C++17の機能を有効にする
181-
- 14.1からは、`/std:c++latest`オプションを使用する
182181

182+
- 15.3からは、`/std:c++17`オプションを使用する。この時`_MSVC_LANG`マクロが`201703`になる
183183

184184
### 最新バージョンの言語機能を有効にする
185-
- 14.0 Update 3からは、`/std:c++latest`オプションを使用する
186185

186+
- 14.0 Update 3からは、`/std:c++latest`オプションを使用する
187187

188+
- [-std (Specify Language Standard Version) | Microsoft Docs](https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version)
189+
- [Predefined Macros | Microsoft Docs](https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros)
188190
- [Standards version switches in the compiler](https://blogs.msdn.microsoft.com/vcblog/2016/06/07/standards-version-switches-in-the-compiler/)

0 commit comments

Comments
 (0)