Skip to content

No float from chars on gcc9 #24393

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

BengtGustafsson
Copy link
Contributor

Description

Don't use std::from_chars for gcc (libstdc++) before version 12. While gcc 11.x does have from_chars it is only in gcc12 that the implementation was fast.

Explicitly void cast a variable that was erroneously flagged as unused by gcc 9 due to imperfect implementation of if constexpr in combination with "warnings as errors" in your build process.

Motivation and Context

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.

2 participants