You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parsing of colors should not be locale dependent #46
Would it be an idea to do an audit of the relevant packages for use of std::stof and similar methods and replace them where appropriate?
I believe you've (@simonschmeisser) have proposed a similar change (moving away from locale-affected methods) for MoveIt. Seeing as this could be a cross-package issue: perhaps refactor this all out into a separate package and use that everywhere?
The change in MoveIt! is because boost::lexical_cast is inconsistent in itself (ie boost::lexical_cast<double>(boost::lexical_cast<std::string>(0.1)) will throw an exception)
but yes, it's going to be a recurrent theme as more packages discover the nice (and totally inconsistent) features in C++ 11 and want to move away from boost::lexical_cast (which is not locale dependent ...)
also note that the word "locale" does not appear a single time in boost::lexical_cast documentation so they might switch to using something broken in future releases ...
Activity
gavanderhoorn commentedon Oct 24, 2018
Would it be an idea to do an audit of the relevant packages for use of
std::stofand similar methods and replace them where appropriate?I believe you've (@simonschmeisser) have proposed a similar change (moving away from locale-affected methods) for MoveIt. Seeing as this could be a cross-package issue: perhaps refactor this all out into a separate package and use that everywhere?
simonschmeisser commentedon Oct 24, 2018
The change in MoveIt! is because boost::lexical_cast is inconsistent in itself (ie
boost::lexical_cast<double>(boost::lexical_cast<std::string>(0.1))will throw an exception)but yes, it's going to be a recurrent theme as more packages discover the nice (and totally inconsistent) features in C++ 11 and want to move away from boost::lexical_cast (which is not locale dependent ...)
also note that the word "locale" does not appear a single time in boost::lexical_cast documentation so they might switch to using something broken in future releases ...