This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Namespace question


Hi,

While working on a refactoring in glibc's libm, I came across a
question about namespace for some helper functions in math.h.

Each classification macro in math.h, has a type-specific helper
function, for instance __fpclassifyf for float.  We would like to
understand if these functions need to be in a namespace or if, since
they are helper functions, the namespace requirement does not apply.

For instance, is the namespace code in the examples below correct,
required, or even incorrect?

namespace __c99 {
extern int __fpclassifyf (float __value);
extern int __signbit (double __value);
extern int __isinff (float __value);
}

namespace std {
extern int __isinf (double __value);
}

The thread where these question were raised is the following:
https://sourceware.org/ml/libc-alpha/2017-03/msg00123.html

Thank you,
Gabriel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]