Skip to content

Commit dafa5a9

Browse files
committed
[cmath.syn] Consolidate std namespaces
There is no ordering dependency between the two typedefs in namespace std, the macros that follow, and teh next opening of namespace std, so move the two typedefs to avoid repeatedly opening an closing the namespace. Note that we could have done this without moving the typedefs as macros are not bound by namespaces, but our convention very sensibly avoids confusing readers by keeping macro definitions outside of namespaces.
1 parent 1b8d25f commit dafa5a9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source/numerics.tex

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9333,11 +9333,6 @@
93339333
\indexlibraryglobal{truncf}%
93349334
\indexlibraryglobal{truncl}%
93359335
\begin{codeblock}
9336-
namespace std {
9337-
using float_t = @\seebelow@;
9338-
using double_t = @\seebelow@;
9339-
}
9340-
93419336
#define HUGE_VAL @\seebelow@
93429337
#define HUGE_VALF @\seebelow@
93439338
#define HUGE_VALL @\seebelow@
@@ -9359,6 +9354,9 @@
93599354
#define math_errhandling @\seebelow@
93609355

93619356
namespace std {
9357+
using float_t = @\seebelow@;
9358+
using double_t = @\seebelow@;
9359+
93629360
constexpr @\placeholdernc{floating-point-type}@ acos(@\placeholdernc{floating-point-type}@ x);
93639361
constexpr float acosf(float x);
93649362
constexpr long double acosl(long double x);

0 commit comments

Comments
 (0)