Skip to content

Conversation

@BillyDonahue
Copy link
Contributor

@BillyDonahue BillyDonahue commented Jan 9, 2025

We already assume C++11 elsewhere (using unique_ptr, etc) so all pre-11 #ifdef branches are dead code at this point. Fixes issue #1591 because we can just use std::isfinite and std::isnan.

@BillyDonahue BillyDonahue requested a review from baylesj January 9, 2025 03:09
@coveralls
Copy link

coveralls commented Jan 9, 2025

Pull Request Test Coverage Report for Build 12683272352

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 95.296%

Totals Coverage Status
Change from base Build 12174437469: 0.001%
Covered Lines: 5308
Relevant Lines: 5570

💛 - Coveralls

@BillyDonahue BillyDonahue changed the title Assume C++11 in json_writer.cpp Assume C++11 Jan 9, 2025
@BillyDonahue BillyDonahue changed the title Assume C++11 Drop pre-C++11 alternatives Jan 9, 2025
We already assume C++11 elsewhere, so all pre-11 `#ifdef` branches are
dead code at this point. Fixes issue #1591 because we can just use
`std::isfinite` etc.

assume C++11 in json_reader.cpp as well

apply clang-format
@baylesj
Copy link
Contributor

baylesj commented Jan 10, 2025

This looks great! Thank you for the patch.

LGTM

@baylesj baylesj merged commit 07a8fe6 into master Jan 10, 2025
22 checks passed
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.

4 participants