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

Improve the implementations of the comparission-operators #63

Merged
merged 5 commits into from
Apr 26, 2015

Conversation

Fiona-J-W
Copy link
Contributor

As the title says, just one thing should be noted:

Until now, integer<float used integer-comparission, while float<integer worked on floats. I believe that this was at best questionable behavior, at worst a bug. This pull-request changes that to always work on floats, which might break code (that would then however have been broken to begin with).

Until now it depended on the parameter-order whether
integers and floats were compared as integers or floats.

Appart from being not logical, this might even have meant that
the provided “order” was in fact not that. (not sure here, but I
like to be carefull)
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) to 99.8% when pulling 4fbff7d on Florianjw:master into a372937 on nlohmann:master.

nlohmann added a commit that referenced this pull request Apr 26, 2015
Improve the implementations of the comparission-operators
@nlohmann nlohmann merged commit 7a32bd2 into nlohmann:master Apr 26, 2015
@nlohmann
Copy link
Owner

Thanks a lot!

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