Skip to content

Commit d9dc0c0

Browse files
authored
Merge pull request #105 from zygoloid/constexpr-key-function
Add a note that constexpr functions are never key functions.
2 parents 79d8186 + 896c166 commit d9dc0c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

abi.html

+2
Original file line numberDiff line numberDiff line change
@@ -6390,6 +6390,8 @@ <h4><a href="#vague-vtable"> 5.2.3 Virtual Tables</a></h4>
63906390
Note that if the key function is not declared inline in the class definition,
63916391
but its definition later is always declared inline,
63926392
it will be emitted in every object containing the definition.</i>
6393+
A constexpr or consteval function is always declared constexpr or consteval on
6394+
its first declaration, and is implicitly inline, so is never a key function.
63936395

63946396
<p>
63956397
<img src=warning.gif alt="<b>NOTE</b>:">

0 commit comments

Comments
 (0)