Skip to content

Commit

Permalink
Add a note that constexpr functions are never key functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zygoloid committed Jun 30, 2020
1 parent bad6307 commit 896c166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions abi.html
Expand Up @@ -6027,6 +6027,8 @@ <h4><a href="#vague-vtable"> 5.2.3 Virtual Tables</a></h4>
Note that if the key function is not declared inline in the class definition,
but its definition later is always declared inline,
it will be emitted in every object containing the definition.</i>
A constexpr or consteval function is always declared constexpr or consteval on
its first declaration, and is implicitly inline, so is never a key function.

<p>
<img src=warning.gif alt="<b>NOTE</b>:">
Expand Down

0 comments on commit 896c166

Please sign in to comment.