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

Replace boost::lexical_cast with std equivalent #4

Merged
merged 1 commit into from Jun 2, 2016

Conversation

pschella
Copy link

@pschella pschella commented Jun 2, 2016

The primary change is a replacement of boost::lexical_cast
with std::to_string. However validateBasic unfortunately
is structured in such a way that to_string would be called
with non-arithmetic types. Although the relevant branch
would never actually execute, the fact that boost::lexical_cast
allows casting from pretty much any type, whereis std::to_string
only takes arithmetic types bites us here. To resolve this the
problematic value is simply not printed.

The primary change is a replacement of boost::lexical_cast
with std::to_string. However validateBasic unfortunately
is structured in such a way that to_string would be called
with non-arithmetic types. Although the relevant branch
would never actually execute, the fact that boost::lexical_cast
allows casting from pretty much any type, whereis std::to_string
only takes arithmetic types bites us here. To resolve this the
problematic value is simply not printed.
@pschella pschella merged commit 298db87 into master Jun 2, 2016
@ktlim ktlim deleted the tickets/DM-6090 branch August 25, 2018 05:48
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.

None yet

1 participant