Skip to content

to_number: Add misssing include - #66

Merged
Finii merged 1 commit into
mainfrom
bugfix/includes-for-to_number
Nov 12, 2026
Merged

Finii merged 1 commit into
mainfrom
bugfix/includes-for-to_number

Conversation

@Finii

@Finii Finii commented Nov 12, 2026

Copy link
Copy Markdown
Member
[why]
Build fails on CI jobs with
- x86_64-apple-darwin13.4.0-clang++
- arm64-apple-darwin20.0.0-clang++

In file included from ../work/subprojects/gul17/src/to_number.cc:28: ../work/subprojects/gul17/include/gul17/to_number.h:369:14: error: no template named 'greater' in namespace 'std'; did you mean 'isgreater'?
  369 |         std::greater<>()(sizeof(NumberType), sizeof(double)),
      |         ~~~~~^~~~~~~
      |              isgreater
$BUILD_PREFIX/bin/../include/c++/v1/cmath:356:9: note: 'isgreater' declared here
  356 | using ::isgreater _LIBCPP_USING_IF_EXISTS;
      |         ^

std::greater<> is defined in <functional>.

Strange is that this is not a problem for my own Darwin machine with Sequoia and clang 17.0.0.

But the clang in question comes in via Conda. That did differ from the official Apple clang in the past already.

[why]
Build fails on CI jobs with
- x86_64-apple-darwin13.4.0-clang++
- arm64-apple-darwin20.0.0-clang++

In file included from ../work/subprojects/gul17/src/to_number.cc:28:
../work/subprojects/gul17/include/gul17/to_number.h:369:14: error: no template named 'greater' in namespace 'std'; did you mean 'isgreater'?
  369 |         std::greater<>()(sizeof(NumberType), sizeof(double)),
      |         ~~~~~^~~~~~~
      |              isgreater
$BUILD_PREFIX/bin/../include/c++/v1/cmath:356:9: note: 'isgreater' declared here
  356 | using ::isgreater _LIBCPP_USING_IF_EXISTS;
      |         ^

std::greater<> is defined in <functional>.

Strange is that this is not a problem for my own Darwin machine with
Sequoia and clang 17.0.0.

But the clang in question comes in via Conda. That did differ from the
official Apple clang in the past already.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii added the bug Something isn't working label Nov 12, 2026

@soerengrunewald soerengrunewald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Finii
Finii merged commit 5bb8ee6 into main Nov 12, 2026
7 checks passed
@Finii
Finii deleted the bugfix/includes-for-to_number branch November 12, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants