Skip to content

Commit 896c166

Browse files
committed
Add a note that constexpr functions are never key functions.
1 parent bad6307 commit 896c166

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

abi.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6027,6 +6027,8 @@ <h4><a href="#vague-vtable"> 5.2.3 Virtual Tables</a></h4>
60276027
Note that if the key function is not declared inline in the class definition,
60286028
but its definition later is always declared inline,
60296029
it will be emitted in every object containing the definition.</i>
6030+
A constexpr or consteval function is always declared constexpr or consteval on
6031+
its first declaration, and is implicitly inline, so is never a key function.
60306032

60316033
<p>
60326034
<img src=warning.gif alt="<b>NOTE</b>:">

0 commit comments

Comments
 (0)