Skip to content

Commit 74c65d1

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 873deb5 commit 74c65d1

File tree

3 files changed

+42
-42
lines changed

3 files changed

+42
-42
lines changed

lang/cpp26/making_non-encodable_string_literals_ill-formed.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-04-04T07:20:26">
192-
2025年04月04日 07時20分26秒
191+
<span itemprop="datePublished" content="2025-04-05T04:07:32">
192+
2025年04月05日 04時07分32秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -225,11 +225,10 @@ <h2>概要</h2>
225225
</code></pre></div>
226226
</p>
227227
<p>C++26ではさらに、文字列リテラルとしてエンコーディングできない文字の扱いが<a class="cpprefjp-defined-word" data-desc="処理系定義の動作。処理系によって事前に定めた動作をする" href="../../implementation-compliance.html#dfn-implementation-defined-behavior">実装定義</a>でコンパイラーに任されていたものを、<a class="cpprefjp-defined-word" data-desc="プログラムが適格でないこと。コンパイルエラーなどになる" href="../../implementation-compliance.html#dfn-ill-formed">不適格</a>になるよう仕様変更する。</p>
228-
<p><div class="codehilite"><pre><span></span><code><span class="kt">wchar_t</span> <span class="n">ao</span> <span class="o">=</span> <span class="n">L</span><span class="err">'\</span><span class="n">x123456789abcdef0</span><span class="err">'</span><span class="p">;</span> <span class="c1">// C++23:実装定義, C++26:NG (範囲外)</span>
229-
<span class="kt">char16_t</span> <span class="n">ap</span> <span class="o">=</span> <span class="n">u</span><span class="err">'\</span><span class="n">x12345678</span><span class="err">'</span><span class="p">;</span> <span class="c1">// C++23:実装定義, C++26:NG (範囲外)</span>
228+
<p>また、マルチ文字リテラル (ひとつの文字リテラルに4文字まで入れられて値が<a class="cpprefjp-defined-word" data-desc="処理系定義の動作。処理系によって事前に定めた動作をする" href="../../implementation-compliance.html#dfn-implementation-defined-behavior">実装定義</a>なもの。例として<code>'intl'</code>) については、単一のコードユニットにエンコードされるもののみ許可される。</p>
229+
<p><div class="codehilite"><pre><span></span><code><span class="kt">char</span> <span class="n">c</span> <span class="o">=</span> <span class="sc">'é'</span><span class="p">;</span> <span class="c1">// C++23:実装定義, C++26:NG グレイブアクセントをつけると複数のコードユニットになる</span>
230230
</code></pre></div>
231231
</p>
232-
<p>また、マルチ文字リテラル (ひとつの文字リテラルに4文字まで入れられて値が<a class="cpprefjp-defined-word" data-desc="処理系定義の動作。処理系によって事前に定めた動作をする" href="../../implementation-compliance.html#dfn-implementation-defined-behavior">実装定義</a>なもの。例として<code>'intl'</code>) については、単一のコードユニットにエンコードされるもののみ許可される。</p>
233232
<h2>関連項目</h2>
234233
<ul>
235234
<li><a href="../cpp23/remove_non_encodable_wide_character_literals_and_multicharacter_wide_character_literals.html">C++23 1ワイド文字に収まらないワイド文字リテラルを禁止する</a></li>

rss.xml

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,45 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-04-04T14:43:50.180723</updated>
6-
<id>5d895047-a4e2-4586-a596-e099234ec08d</id>
5+
<updated>2025-04-05T04:10:55.229879</updated>
6+
<id>301947f6-4151-4b12-9471-f5ae910d7e67</id>
77

88

9+
<entry>
10+
<title>文字列リテラルの文字エンコーディング失敗を不適格とする [P1854R4] -- C++26 「文字列リテラルの文字エンコーディング失敗を不適格とする」 : 例を見直し</title>
11+
<link href="https://cpprefjp.github.io/lang/cpp26/making_non-encodable_string_literals_ill-formed.html"/>
12+
<id>e897a1649efc952baf4e9f66508e25ea37cca81a:lang/cpp26/making_non-encodable_string_literals_ill-formed.md</id>
13+
<updated>2025-04-05T13:07:32+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp26/making_non-encodable_string_literals_ill-formed.md b/lang/cpp26/making_non-encodable_string_literals_ill-formed.md
16+
index 10bf6463f..629db80db 100644
17+
--- a/lang/cpp26/making_non-encodable_string_literals_ill-formed.md
18+
+++ b/lang/cpp26/making_non-encodable_string_literals_ill-formed.md
19+
@@ -20,13 +20,12 @@ wchar_t c = L&amp;#39;é&amp;#39;; // C++20:OK, C++23:NG \u0065\u0301
20+
21+
C++26ではさらに、文字列リテラルとしてエンコーディングできない文字の扱いが実装定義でコンパイラーに任されていたものを、不適格になるよう仕様変更する。
22+
23+
+また、マルチ文字リテラル (ひとつの文字リテラルに4文字まで入れられて値が実装定義なもの。例として`&amp;#39;intl&amp;#39;`) については、単一のコードユニットにエンコードされるもののみ許可される。
24+
+
25+
```cpp
26+
-wchar_t ao = L&amp;#39;\x123456789abcdef0&amp;#39;; // C++23:実装定義, C++26:NG (範囲外)
27+
-char16_t ap = u&amp;#39;\x12345678&amp;#39;; // C++23:実装定義, C++26:NG (範囲外)
28+
+char c = &amp;#39;é&amp;#39;; // C++23:実装定義, C++26:NG グレイブアクセントをつけると複数のコードユニットになる
29+
```
30+
31+
-また、マルチ文字リテラル (ひとつの文字リテラルに4文字まで入れられて値が実装定義なもの。例として`&amp;#39;intl&amp;#39;`) については、単一のコードユニットにエンコードされるもののみ許可される。
32+
-
33+
34+
## 関連項目
35+
- [C++23 1ワイド文字に収まらないワイド文字リテラルを禁止する](/lang/cpp23/remove_non_encodable_wide_character_literals_and_multicharacter_wide_character_literals.md)
36+
&lt;/code&gt;&lt;/pre&gt;</summary>
37+
38+
<author>
39+
<name>Akira Takahashi</name>
40+
<email>[email protected]</email>
41+
</author>
42+
</entry>
43+
944
<entry>
1045
<title>count -- Created version column for reference/algorithm/count.md</title>
1146
<link href="https://cpprefjp.github.io/reference/algorithm/count.html"/>
@@ -143,38 +178,4 @@ index e28d07b41..81610824b 100644
143178
</author>
144179
</entry>
145180

146-
<entry>
147-
<title>binary_search -- created version column for reference/algorithm/binary_search.md</title>
148-
<link href="https://cpprefjp.github.io/reference/algorithm/binary_search.html"/>
149-
<id>1c1a876c59100a851f95aaee62d21850628b6e19:reference/algorithm/binary_search.md</id>
150-
<updated>2025-04-04T22:37:58+09:00</updated>
151-
152-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/algorithm/binary_search.md b/reference/algorithm/binary_search.md
153-
index 2eeb4495d..342f67c3d 100644
154-
--- a/reference/algorithm/binary_search.md
155-
+++ b/reference/algorithm/binary_search.md
156-
@@ -100,6 +100,15 @@ bool binary_search(ForwardIterator first, ForwardIterator last,
157-
```
158-
* std::lower_bound[link lower_bound.md]
159-
160-
+## バージョン
161-
+### 言語
162-
+- C++98
163-
+
164-
+### 処理系
165-
+- [Clang](/implementation.md#clang): 14.0.6 [mark verified]
166-
+- [GCC](/implementation.md#gcc): 9.5.0 [mark verified]
167-
+- [ICC](/implementation.md#icc): ??
168-
+- [Visual C++](/implementation.md#visual_cpp): ??
169-
170-
## 参照
171-
- [LWG Issue 787. complexity of `binary_search`](http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#787)
172-
&lt;/code&gt;&lt;/pre&gt;</summary>
173-
174-
<author>
175-
<name>rotarymars</name>
176-
<email>[email protected]</email>
177-
</author>
178-
</entry>
179-
180181
</feed>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37495,7 +37495,7 @@
3749537495

3749637496
<url>
3749737497
<loc>https://cpprefjp.github.io/lang/cpp26/making_non-encodable_string_literals_ill-formed.html</loc>
37498-
<lastmod>2025-04-04T16:20:26+09:00</lastmod>
37498+
<lastmod>2025-04-05T13:07:32+09:00</lastmod>
3749937499
<changefreq>daily</changefreq>
3750037500
<priority>0.7</priority>
3750137501
</url>

0 commit comments

Comments
 (0)