Skip to content

Commit 795371b

Browse files
committed
LWG wording tweaks to 4442 P/R
1 parent 44ebbdb commit 795371b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

xml/issue4442.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,26 @@ template<class T>
3232
<p>-7- <i>Mandates</i>: `T` is an object type.</p>
3333
<p>-8- <i>Returns</i>: A reflection of the object designated by `expr`.</p>
3434
<p>-9- <i>Throws</i>: `meta::exception`
35-
<ins>if for an lvalue constant expression `E` that computes the object that `expr` refers to, `E`</ins>
36-
<del>unless `expr`</del> is <ins>not</ins> suitable for use as a constant template argument
37-
for a constant template parameter of type <tt>T&amp;</tt> (<sref ref="[temp.arg.nontype]"/>).</p>
35+
<del>unless `expr` is</del>
36+
<ins>if `E` is not</ins>
37+
suitable for use as a constant template argument
38+
for a constant template parameter of type <tt>T&amp;</tt> (<sref ref="[temp.arg.nontype]"/>)
39+
<ins>, where `E` is an lvalue constant expression that computes the object that `expr` refers to</ins>.</p>
3840
</blockquote>
3941

4042
<pre>
4143
template&lt;class T&gt;
42-
consteval info reflect_function(T&amp; expr);
44+
consteval info reflect_function(T&amp; fn);
4345
</pre>
4446
<blockquote>
4547
<p>-10- <i>Mandates</i>: `T` is an function type.</p>
4648
<p>-11- <i>Returns</i>: A reflection of the function designated by `fn`.</p>
4749
<p>-12- <i>Throws</i>: `meta::exception`
48-
<ins>if for an lvalue constant expression `F` that computes the function that `fn` refers to, `F`</ins>
49-
<del>unless `fn`</del> is <ins>not</ins> suitable for use as a constant template argument
50-
for a constant template parameter of type <tt>T&amp;</tt> (<sref ref="[temp.arg.nontype]"/>).</p>
50+
<del>unless `fn` is</del>
51+
<ins>if `F` is not</ins>
52+
suitable for use as a constant template argument
53+
for a constant template parameter of type <tt>T&amp;</tt> (<sref ref="[temp.arg.nontype]"/>)
54+
<ins>, where `F` is an lvalue constant expression that computes the function that `fn` refers to</ins>.</p>
5155
</blockquote>
5256

5357
</li>

0 commit comments

Comments
 (0)