[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: signbit(), C++, and Solaris 10
From: |
Damian McGuckin |
Subject: |
Re: signbit(), C++, and Solaris 10 |
Date: |
Sat, 23 Nov 2024 00:48:24 +1100 (AEDT) |
On Fri, 22 Nov 2024, Bruno Haible wrote:
Damian McGuckin wrote:
Why does 'signbit()' have type 'bool' in the local 'math.h'?
Because that's the mandated return type in C++:
https://en.cppreference.com/w/cpp/numeric/math/signbit
https://en.cppreference.com/w/c/numeric/math/signbit
Silly me, I forgot C++ disagrees with the C standard.
So somewhere, is something in the build process pulling in the C header?
Thanks - Damian
- signbit(), C++, and Solaris 10, G. Branden Robinson, 2024/11/21
- Re: signbit(), C++, and Solaris 10, Paul Eggert, 2024/11/22
- Re: signbit(), C++, and Solaris 10, Damian McGuckin, 2024/11/22
- Re: signbit(), C++, and Solaris 10, Bruno Haible, 2024/11/22
- Re: signbit(), C++, and Solaris 10,
Damian McGuckin <=
- Re: signbit(), C++, and Solaris 10, G. Branden Robinson, 2024/11/22
- Re: signbit(), C++, and Solaris 10, Paul Eggert, 2024/11/22