Skip to content

Commit ca8e5ab

Browse files
authored
create page P2558R2
1 parent 5090f49 commit ca8e5ab

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

implementation-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
| P2552R3: [属性の無視性を見直し](/lang/cpp26/on_the_ignorability_of_standard_attributes.md.nolink) | 構文として適格な属性のみを無視できるようにし、そうでない属性の使用を不適格とする | | | | |
298298
| P2738R1: [定数式での`void*`からポインタ型へのキャストを許可](/lang/cpp26/constexpr_cast_from_voidptr.md.nolink) | 型消去のために`void*`からポインタ型へのキャストを許可する | 14 | 17 | | |
299299
| P2741R3: [`static_assert`の診断メッセージにユーザーが生成した文字列の指定を許可](/lang/cpp26/user-generated_static_assert_messages.md) | `constexpr``S.size()``S.data()`メンバ関数をもつオブジェクトをコンパイル時文字列として指定できるようにする | 14 | 17 | | |
300-
| P2558R2: [基本文字集合に@、$、\`を追加](/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md.nolink) | C言語との互換性のためにこれらの文字を基本文字集合に追加 | | Yes | | |
300+
| P2558R2: [基本文字集合に@、$、\`を追加](/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md) | C言語との互換性のためにこれらの文字を基本文字集合に追加 | | Yes | | |
301301
| P2662R3: [パラメータパックへのインデックスアクセスを許可](/lang/cpp26/pack_indexing.md.nolink) | 可変引数テンプレートのパラメータパックに添字アクセスできるようにする | | | | |
302302
| P2864R2: [非推奨となっていた列挙値から算術型への暗黙変換を削除](/lang/cpp26/remove_deprecated_arithmetic_conversion_on_enumerations.md) | C++20から非推奨となっていた列挙値への算術演算で算術型に暗黙変換される仕様を削除 | 14 | 18 | | |
303303
| P2748R5: [返却された左辺値から暗黙変換された一時オブジェクトが参照に束縛されることを禁止する](/lang/cpp26/disallow_binding_a_returned_glvalue_to_a_temporary.md.nolink) | 寿命切れの変数によって引き起こされるバグを防止する | 14 | 19 | | |

lang/cpp26.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ C++26とは、2026年中に改訂される予定の、C++バージョンの通
7777

7878
| 言語機能 | 説明 |
7979
|----------|------|
80-
| [基本文字集合に@、$、\`を追加](/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md.nolink) | C言語との互換性のためにこれらの文字を基本文字集合に追加 |
80+
| [基本文字集合に@、$、\`を追加](/lang/cpp26/add_atsign_dollar_graveaccent_to_the_basic_character_set.md) | C言語との互換性のためにこれらの文字を基本文字集合に追加 |
8181

8282

8383
### モジュール
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 基本文字集合に@、$、\`を追加[P2558R2]
2+
* cpp26[meta cpp]
3+
<!-- start lang caution -->
4+
このページはC++26に採用される見込みの言語機能の変更を解説しています。
5+
のちのC++規格でさらに変更される場合があるため[関連項目](#relative-page)を参照してください。
6+
<!-- last lang caution -->
7+
## 概要
8+
基本文字集合に
9+
$ (U+0024)
10+
@ (U+0040)
11+
` (U+0060)
12+
の3文字を加える。
13+
CではC23で追加され、それに合わせるようにC++でも同様の変更を提案している。
14+
これにより、これらの文字を構文として使用でき、コードの可読性や他言語絵の移植性が向上する。
15+
```cpp
16+
#include <stdio.h>
17+
#define STR(x) #x
18+
int main()
19+
{
20+
printf("%s", STR(\u0060)); // U+0060 は ` GRAVE ACCENT
21+
}
22+
```
23+
## 参照
24+
- [P2558R2 Add @, $, and ` to the basic character set](https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2558r2.html)

0 commit comments

Comments
 (0)