Skip to content

Commit 45eb505

Browse files
AlisdairMtkoeppe
authored andcommitted
[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 371f8ec commit 45eb505

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
@@ -9304,11 +9304,6 @@
93049304
\indexlibraryglobal{truncf}%
93059305
\indexlibraryglobal{truncl}%
93069306
\begin{codeblock}
9307-
namespace std {
9308-
using float_t = @\seebelow@;
9309-
using double_t = @\seebelow@;
9310-
}
9311-
93129307
#define @\libmacro{HUGE_VAL}@ @\seebelow@
93139308
#define @\libmacro{HUGE_VALF}@ @\seebelow@
93149309
#define @\libmacro{HUGE_VALL}@ @\seebelow@
@@ -9330,6 +9325,9 @@
93309325
#define @\libmacro{math_errhandling}@ @\seebelow@
93319326

93329327
namespace std {
9328+
using float_t = @\seebelow@;
9329+
using double_t = @\seebelow@;
9330+
93339331
constexpr @\placeholdernc{floating-point-type}@ acos(@\placeholdernc{floating-point-type}@ x);
93349332
constexpr float acosf(float x);
93359333
constexpr long double acosl(long double x);

0 commit comments

Comments
 (0)