-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc6 error: 'round' is not a member of 'std' (amigaos-m68k) #3342
Comments
A missing One way to fix this is to use |
Actually why even round? Is this not just as valid: - if (num_fractional_digits < 6 && static_cast<rep>(std::round(val)) != val)
+ if (num_fractional_digits < 6 && num_fractional_digits != 0)
num_fractional_digits = 6; I guess the fraction can have more precision than a double, so that it is 0 when converted to a double. |
glebm
added a commit
to diasurgical/fmt
that referenced
this issue
Mar 12, 2023
On some toolchains, `std::round` is not available. Fixes fmtlib#3342
Example godbolt with another toolchain: https://godbolt.org/z/GfE3MaT15 |
vitaut
pushed a commit
that referenced
this issue
Mar 12, 2023
On some toolchains, `std::round` is not available. Fixes #3342
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On master:
https://app.circleci.com/pipelines/github/diasurgical/devilutionX/17079/workflows/258308a7-7fff-41f5-ac59-0a50f4d74abf/jobs/108889 (diasurgical/devilutionX#5875)
The text was updated successfully, but these errors were encountered: