Skip to content

Commit 20532d2

Browse files
burblebeetkoeppe
authored andcommitted
LWG3790 P1467 accidentally changed nexttoward's signature
1 parent e47fe19 commit 20532d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/numerics.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9160,7 +9160,7 @@
91609160
constexpr float nextafterf(float x, float y);
91619161
constexpr long double nextafterl(long double x, long double y);
91629162

9163-
constexpr @\placeholder{floating-point-type}@ nexttoward(@\placeholder{floating-point-type}@ x, @\placeholder{floating-point-type}@ y);
9163+
constexpr @\placeholder{floating-point-type}@ nexttoward(@\placeholder{floating-point-type}@ x, long double y);
91649164
constexpr float nexttowardf(float x, long double y);
91659165
constexpr long double nexttowardl(long double x, long double y);
91669166

@@ -9349,6 +9349,11 @@
93499349
a usable candidate\iref{over.match.general}
93509350
from the overloads provided by the implementation.
93519351

9352+
\pnum
9353+
An invocation of \tcode{nexttoward} is ill-formed if
9354+
the argument corresponding to the \placeholder{floating-point-type} parameter
9355+
has extended floating-point type.
9356+
93529357
\xrefc{7.12}
93539358

93549359
\rSec2[c.math.abs]{Absolute values}

0 commit comments

Comments
 (0)