You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[headers] Unclear status for floating-point classification/comparison functions LWG4488 #8579
[headers]/5 especially mentions "names which are defined as macros in C", which include floating-point classification/comparison functions (fpclassify, isless, etc.).
So, is <cmath> disallowed to declare them in the global namespace as they seem to be excluded from "these names"?
Names which are defined as macros in C shall be defined as macros in the C++ standard library, even if C grants license for implementation as functions.
Does this mean that despite being functions, these names also need to be defined as macros in C++?
I think both answers are "no". Not sure whether this needs an LWG issue.
changed the title [-][headers] Unclear status for floating-point classification/comparison functions[/-][+][headers] Unclear status for floating-point classification/comparison functions LWG4488[/+]on Dec 20, 2025
Activity
jwakely commentedon Dec 3, 2025
This needs a library issue. We need to separate the C++ spec from the limitations of C that requires using macros for overloading.
frederick-vs-ja commentedon Dec 20, 2025
LWG4488
[-][headers] Unclear status for floating-point classification/comparison functions[/-][+][headers] Unclear status for floating-point classification/comparison functions LWG4488[/+]