Skip to content

Commit e9a9e97

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent b70f220 commit e9a9e97

File tree

3 files changed

+33
-432
lines changed

3 files changed

+33
-432
lines changed

lang/cpp26/module_declarations_shouldnt_be_macros.html

Lines changed: 3 additions & 3 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-07T08:21:00">
192-
2025年04月07日 08時21分00秒
191+
<span itemprop="datePublished" content="2025-04-07T08:31:40">
192+
2025年04月07日 08時31分40秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -231,7 +231,7 @@ <h2>概要</h2>
231231
<span class="c1">// lib.cppm:</span>
232232
<span class="n">module</span><span class="p">;</span>
233233
<span class="cp">#include</span> <span class="cpf">"version.h"</span><span class="cp"></span>
234-
<span class="k">export</span> <span class="n">module</span> <span class="n">VERSION</span><span class="p">;</span> <span class="c1">// C++23: OK, C++26: NG</span>
234+
<span class="k">export</span> <span class="n">module</span> <span class="n">VERSION</span><span class="p">;</span> <span class="c1">// コンパイルエラー!</span>
235235
</code></pre></div>
236236
</p>
237237
<p>この仕様は、C++20の欠陥として扱われる。そのため、C++20やC++23に対応したコンパイラですでに実装されている可能性がある。</p>

0 commit comments

Comments
 (0)