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 double conversion #1411

Merged
merged 5 commits into from May 25, 2019

Conversation

JacquesOlivierLachaud
Copy link
Member

@JacquesOlivierLachaud JacquesOlivierLachaud commented May 14, 2019

PR Description

atof (C) and boost::program_option (C++) use a different "locale" information to determine if the decimal point is a point '.' or a comma ','. Since we use boost::program_option for managing parameters, it is necessary to use C++ stringstream to perform string -> double conversions in class Parameters. This is fixed in this PR.

Checklist

  • Unit-test of your feature with Catch.
  • New entry in the ChangeLog.md added.
  • No warning raised in Debug cmake mode (otherwise, Travis C.I. will fail).
  • All continuous integration tests pass (Travis & appveyor)

Copy link
Member

@dcoeurjo dcoeurjo left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Just minor comments

ChangeLog.md Outdated Show resolved Hide resolved
ChangeLog.md Outdated Show resolved Hide resolved
JacquesOlivierLachaud and others added 2 commits May 24, 2019 17:31
Co-Authored-By: David Coeurjolly <david.coeurjolly@liris.cnrs.fr>
Co-Authored-By: David Coeurjolly <david.coeurjolly@liris.cnrs.fr>
@dcoeurjo
Copy link
Member

👌 merging

@dcoeurjo dcoeurjo merged commit 804d3b7 into DGtal-team:master May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants