Skip to content
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

validation.h: stold => std::from_chars #224

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Copy link
Collaborator

@mpsijm mpsijm left a comment

Choose a reason for hiding this comment

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

This looks like the same fix as #223 (comment), but for long double instead of long long, so I guess that's fine 😄

The CI failure seems to be related to checktestdata, not the validator. I've tested it on the problem set of BAPC 2022, and it seems to still work! 🚀

@mzuenni
Copy link
Collaborator

mzuenni commented Oct 26, 2022

This is somewhat dangerous. Even though from_chars for doubles is part of c++17, compilers only started to support this recently, see compiler support ):
Gcc started to support this with version 11 and it looks like clang with libc++ does not support this at all.

But from_chars is preferable as soon as people stop using gcc 10.

@RagnarGrootKoerkamp
Copy link
Owner Author

Ah good find. In that case let's wait.

@RagnarGrootKoerkamp RagnarGrootKoerkamp marked this pull request as draft October 26, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants