[headers] Unclear status for floating-point classification/comparison functions LWG4488
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 221
- Forks
- 813
- Avg merge
- 16h 4m
- Merged PRs (30d)
- 36
Description
[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"?
Also, [headers]/6 states
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading [headers]/5 and [headers]/6 in the linked C++ draft, then compare their wording with the listed floating-point classification and comparison functions such as fpclassify and isless. Done means resolving whether may declare these names globally and whether they must be macros in C++, with the conclusion recorded as the appropriate standards clarification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100