Skip to content

Commit 17a5018

Browse files
committed
C++23 : __cplusplusの値を記載
1 parent e1b7ee3 commit 17a5018

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

lang/cpp23.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ C++23とは、2023年中に改訂される予定の、C++バージョンの通
105105

106106
| 言語機能 | 説明 |
107107
|----------|------|
108+
| [更新された定義済みマクロ](cpp23/predefined_macros.md) | 標準規格で定義されたマクロの更新 |
108109
| [参照するPOSIX規格を更新](cpp23/update_normative_reference_to_posix.md) | 新しいPOSIX規格の機能を標準C++が参照していたため、参照するPOSIX規格のバージョンを更新 |
109110
| [行末スペースを無視するよう規定](cpp23/trimming_whitespaces_before_line_splicing.md) | 行末が「<code>\ </code>」でおわっていた場合にMSVCは行の継続をしない実装になっていたため動作を共通化するため仕様を規定 |
110111

lang/cpp23/predefined_macros.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# 更新された定義済みマクロ
2+
* cpp23[meta cpp]
3+
4+
## 概要
5+
6+
定義済みマクロの値が、以下のように更新された:
7+
8+
| マクロ名 || 説明 |
9+
|---------------|-----------|-------------------------|
10+
| `__cplusplus` | `202302L` | C++のバージョン値を表す |
11+
12+
13+
## 参照
14+
- [N4951 Editors’ Report: Programming Languages — C++](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/n4951.html)

0 commit comments

Comments
 (0)