Skip to content

Commit

Permalink
Rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed Feb 15, 2024
1 parent c3c729b commit 60f025c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2996_reflection/p2996r2.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h1 class="title" style="text-align:center">Reflection for C++26</h1>
<tr>
<td style="vertical-align:top">Audience:</td>
<td>
EWG<br>
EWG, LEWG<br>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1510,7 +1510,7 @@ <h2 data-number="3.15" id="named-tuple"><span class="header-section-number">3.15
<span id="cb31-9"><a href="#cb31-9"></a> std<span class="op">::</span>vector<span class="op">&lt;</span>std<span class="op">::</span>meta<span class="op">::</span>info<span class="op">&gt;</span> nsdms;</span>
<span id="cb31-10"><a href="#cb31-10"></a> <span class="kw">auto</span> f <span class="op">=</span> <span class="op">[&amp;]&lt;</span><span class="kw">class</span> Tag<span class="op">&gt;(</span>Tag tag<span class="op">){</span></span>
<span id="cb31-11"><a href="#cb31-11"></a> nsdms<span class="op">.</span>push_back<span class="op">(</span>data_member_spec<span class="op">(</span></span>
<span id="cb31-12"><a href="#cb31-12"></a> dealias<span class="op">(^</span>Tag<span class="op">::</span>type<span class="op">)</span>,</span>
<span id="cb31-12"><a href="#cb31-12"></a> dealias<span class="op">(^</span><span class="kw">typename</span> Tag<span class="op">::</span>type<span class="op">)</span>,</span>
<span id="cb31-13"><a href="#cb31-13"></a> <span class="op">{.</span>name<span class="op">=</span>Tag<span class="op">::</span>name<span class="op">()}))</span>;</span>
<span id="cb31-14"><a href="#cb31-14"></a></span>
<span id="cb31-15"><a href="#cb31-15"></a> <span class="op">}</span>;</span>
Expand All @@ -1528,7 +1528,7 @@ <h2 data-number="3.15" id="named-tuple"><span class="header-section-number">3.15
<span id="cb31-27"><a href="#cb31-27"></a> <span class="op">[[</span><span class="at">maybe_unused</span><span class="op">]]</span> <span class="kw">auto</span> r <span class="op">=</span> R<span class="op">{.</span>x<span class="op">=</span><span class="dv">1</span>, <span class="op">.</span>y<span class="op">=</span><span class="fl">2.0</span><span class="op">}</span>;</span>
<span id="cb31-28"><a href="#cb31-28"></a><span class="op">}</span></span></code></pre></div>
</blockquote>
<p><a href="https://godbolt.org/z/GKM4947fM">On Compiler Explorer</a>.</p>
<p><a href="https://godbolt.org/z/nMx4M9sdT">On Compiler Explorer</a>.</p>
<h2 data-number="3.16" id="compile-time-ticket-counter"><span class="header-section-number">3.16</span> Compile-Time Ticket Counter<a href="#compile-time-ticket-counter" class="self-link"></a></h2>
<p>The features proposed here make it a little easier to update a ticket counter at compile time. This is not an ideal implementation (we’d prefer direct support for compile-time —– i.e., <code class="sourceCode cpp"><span class="kw">consteval</span></code> — variables), but it shows how compile-time mutable state surfaces in new ways.</p>
<blockquote>
Expand Down

0 comments on commit 60f025c

Please sign in to comment.