Skip to content

Conversation

@RUSLoker
Copy link

@RUSLoker RUSLoker commented Jan 25, 2023

When you use long double as a floating point type with the current version of include/nlohmann/detail/output/serializer.hpp and try to dump json it prints trash instead of actual number. This if-else fixes the problem. On using long double you just need to add an 'L' modifier before 'g' in format string.

When you use long double as a floating point type with the current version of this file and try to dump json it prints trash instead of actual number. This if-else fixes the problem. On using long double you just need to add an 'L' modifier before 'g' in format string.
@RUSLoker RUSLoker requested a review from nlohmann as a code owner January 25, 2023 15:35
@github-actions
Copy link

🔴 Amalgamation check failed! 🔴

The source code has not been amalgamated. @RUSLoker Please read and follow the Contribution Guidelines.

@github-actions github-actions bot added the S label Jan 25, 2023
Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

The library targets C++11. Please adjust the code.

@RUSLoker RUSLoker requested a review from nlohmann January 25, 2023 15:46
@github-actions
Copy link

🔴 Amalgamation check failed! 🔴

The source code has not been amalgamated. @RUSLoker Please read and follow the Contribution Guidelines.

@github-actions
Copy link

🔴 Amalgamation check failed! 🔴

The source code has not been amalgamated. @RUSLoker Please read and follow the Contribution Guidelines.

@RUSLoker RUSLoker requested review from gregmarr and nlohmann and removed request for gregmarr and nlohmann January 26, 2023 08:46
@coveralls
Copy link

coveralls commented Jan 26, 2023

Coverage Status

coverage: 100.0%. remained the same
when pulling cf5c7fb on RUSLoker:patch-1
into a259ecc on nlohmann:develop.

Copy link
Contributor

@gregmarr gregmarr left a comment

Choose a reason for hiding this comment

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

LGTM, @nlohmann will need to merge.

@t-b
Copy link
Contributor

t-b commented Jan 26, 2023

I think a test is missing or?

@nlohmann
Copy link
Owner

Yes, a test is definitely required.

There is also #3906 that I need to take care of to finally have a green CI again. I'm busy right now, so sorry for delays.

@nlohmann
Copy link
Owner

Please update to recent develop version - the CI is fixed there (see #3906).

@nlohmann nlohmann added the please rebase Please rebase your branch to origin/develop label Jan 31, 2023
@RUSLoker
Copy link
Author

RUSLoker commented Feb 1, 2023

@nlohmann, it asks for your approval to run CI workflows.

@RUSLoker
Copy link
Author

RUSLoker commented Feb 1, 2023

@nlohmann, @gregmarr, what's wrong with Cirrus CI / check?

@nlohmann
Copy link
Owner

nlohmann commented Feb 1, 2023

@nlohmann, @gregmarr, what's wrong with Cirrus CI / check?

Looks like a glitch.

@nlohmann nlohmann removed the please rebase Please rebase your branch to origin/develop label Feb 1, 2023
Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

Please add tests.

@github-actions github-actions bot removed the S label Dec 15, 2023
@nlohmann
Copy link
Owner

Any update on this? Tests are still missing.

@nlohmann nlohmann added the please rebase Please rebase your branch to origin/develop label Nov 26, 2024
@nlohmann
Copy link
Owner

Please update to the latest develop branch and add a test.

@nlohmann
Copy link
Owner

@RUSLoker It would be great if you could add a test so we can merge this.

@github-actions
Copy link

This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions!

@github-actions github-actions bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please rebase Please rebase your branch to origin/develop S state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants