|
201 | 201 | <p class="text-right"><small> |
202 | 202 | 最終更新日時: |
203 | 203 | <time itemprop="datePublished" class="js-local-time" |
204 | | - datetime="2026-08-21T14:01:16+09:00"> |
205 | | - 2026年08月21日 14時01分16秒 (JST) |
| 204 | + datetime="2026-08-28T10:01:58+09:00"> |
| 205 | + 2026年08月28日 10時01分58秒 (JST) |
206 | 206 | </time> |
207 | 207 | <br/> |
208 | 208 | <span itemprop="author" itemscope itemtype="http://schema.org/Person"> |
@@ -307,7 +307,6 @@ <h2>効果</h2> |
307 | 307 | <p>(2): <code>TD</code>を<code>remove_const<T></code>として、以下の順に<code>value</code>を初期化する。</p> |
308 | 308 | <ul> |
309 | 309 | <li><code>TD</code>が<code>bool</code>なら、<code>v</code>で初期化</li> |
310 | | -<li><code>TD</code>が<code>char</code>かつ<code>char_type</code>が<code>wchar_t</code>なら、<code>value</code>を<code>static_cast<wchar_t>(v)</code>で初期化</li> |
311 | 310 | <li><code>TD</code>が<code>char</code>かつ<code>char_type</code>が<code>wchar_t</code>なら、<code>value</code>を<code>static_cast<wchar_t>(static_cast<unsigned char>(v))</code>で初期化</li> |
312 | 311 | <li><code>TD</code>が符号つき整数型かつ<code>sizeof(TD) <= sizeof(int)</code>なら、<code>value</code>を<code>static_cast<int>(v)</code>で初期化</li> |
313 | 312 | <li><code>TD</code>が符号なし整数型かつ<code>sizeof(TD) <= sizeof(unsigned int)</code>なら、<code>value</code>を<code>static_cast<unsigned int>(v)</code>で初期化</li> |
@@ -340,6 +339,10 @@ <h2>参照</h2> |
340 | 339 | <li>C++23で、コンストラクタが検査する型プロパティをcvref除去後の型で判定するよう整理された(最終的にコンストラクタは左辺値参照<code>T&</code>をとり、<code>TD = remove_const_t<T></code>で判定する形になった)</li> |
341 | 340 | </ul> |
342 | 341 | </li> |
| 342 | +<li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2909r4.html" target="_blank">P2909R4 Fix formatting of code units as integers (Dude, where's my char?)</a><ul> |
| 343 | +<li>C++26で、<code>char</code>を<code>wchar_t</code>として保持する場合に<code>unsigned char</code>を経由して変換するよう規定された。この修正は欠陥報告 (DR) であり、C++20へ遡及して適用される。元の規定では<code>char</code>の符号の有無が<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-implementation-defined-behavior">処理系定義</a>となっており、移植性のある動作が存在しなかったため</li> |
| 344 | +</ul> |
| 345 | +</li> |
343 | 346 | <li><a href="https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3391r2.html" target="_blank">P3391R2 <code>constexpr std::format</code></a><ul> |
344 | 347 | <li>C++26から<code>constexpr</code>に対応した</li> |
345 | 348 | </ul> |
|
0 commit comments