Skip to content

Commit

Permalink
Wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed Nov 27, 2024
1 parent 82341e8 commit 59cc463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ int magnitude(Point p) {
return (good * good + ...);
}

auto [...bad] = p; // error: p is not a templated entity
auto [...bad] = p; // error: bad is not a templated entity
}
```
:::
Expand Down
6 changes: 3 additions & 3 deletions 3525_explicit_implicit_template_region/p3525r0.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="generator" content="mpark/wg21" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="dcterms.date" content="2024-11-23" />
<meta name="dcterms.date" content="2024-11-27" />
<title>Explicit Implicit Template Regions</title>
<style>
code{white-space: pre-wrap;}
Expand Down Expand Up @@ -566,7 +566,7 @@ <h1 class="title" style="text-align:center">Explicit Implicit Template
</tr>
<tr>
<td>Date:</td>
<td>2024-11-23</td>
<td>2024-11-27</td>
</tr>
<tr>
<td style="vertical-align:top">Project:</td>
Expand Down Expand Up @@ -774,7 +774,7 @@ <h2 data-number="2.1" id="wording"><span class="header-section-number">2.1</span
<span id="cb8-6"><a href="#cb8-6" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="op">(</span>good <span class="op">*</span> good <span class="op">+</span> <span class="op">...)</span>;</span>
<span id="cb8-7"><a href="#cb8-7" aria-hidden="true" tabindex="-1"></a> <span class="op">}</span></span>
<span id="cb8-8"><a href="#cb8-8" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb8-9"><a href="#cb8-9" aria-hidden="true" tabindex="-1"></a> <span class="kw">auto</span> <span class="op">[...</span>bad<span class="op">]</span> <span class="op">=</span> p; <span class="co">// error: p is not a templated entity</span></span>
<span id="cb8-9"><a href="#cb8-9" aria-hidden="true" tabindex="-1"></a> <span class="kw">auto</span> <span class="op">[...</span>bad<span class="op">]</span> <span class="op">=</span> p; <span class="co">// error: bad is not a templated entity</span></span>
<span id="cb8-10"><a href="#cb8-10" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span></code></pre></div>
<span> — <em>end example</em> ]</span>
</div>
Expand Down

0 comments on commit 59cc463

Please sign in to comment.