This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.
<numeric> should include <compare>Section: 26.9 [numeric.ops.overview] Status: New Submitter: Sergey Zubkov Opened: 2026-11-23 Last modified: 2026-11-27
Priority: Not Prioritized
View all issues with New status.
Discussion:
It was pointed out in
https://github.com/cplusplus/draft/pull/9422#discussion_r4659309235
that std::wide_result has operator<=>, but header <numeric>
does not include <compare>, which is inconsistent. LWG 4416(i)
recently added #include <compare> to <meta> for the same kind of reason.
Proposed resolution:
This wording is relative to N5054.
Modify the header <numeric> synopsis in 26.9 [numeric.ops.overview] as indicated:
// mostly freestanding #include <compare> // see 17.12.1 [compare.syn] namespace std { […] }