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

Fix build with GCC 8.2.0 #15

Merged
merged 2 commits into from
Mar 16, 2020
Merged

Fix build with GCC 8.2.0 #15

merged 2 commits into from
Mar 16, 2020

Conversation

shdnx
Copy link
Contributor

@shdnx shdnx commented Mar 16, 2020

For some reason, GCC 8.2.0's glibc has the pre-c++11 overloads of std::string::erase() which take a non-const iterator. This change fixes building on that compiler, and should also work on later versions (tested with Clang 9.0.1).

@marzer
Copy link
Owner

marzer commented Mar 16, 2020

Ooh, thanks @shdnx! Could you also make the same changes in the single-header version, toml.hpp? Either manually, or using the python script (see Regenerating toml.hpp in CONTRIBUTING).

@marzer
Copy link
Owner

marzer commented Mar 16, 2020

(side note: CircleCI should have run checks against this PR, and the fact that it didn't means I've misconfigured it somehow. Guess I should investigate that.)

@shdnx
Copy link
Contributor Author

shdnx commented Mar 16, 2020

@marzer Sorry about that, I fixed it there as well now!

@marzer
Copy link
Owner

marzer commented Mar 16, 2020

Nice work, thanks @shdnx

@marzer marzer merged commit fe0ef67 into marzer:master Mar 16, 2020
@shdnx
Copy link
Contributor Author

shdnx commented Mar 16, 2020

@marzer Thank you for the quick reaction!

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