In InstrumentDefinitionParser: use of atoi and boost::lexical_cast consistent #10270
Closed
1 task done
Labels
Framework
Issues and pull requests related to components in the Framework
Low Priority
Things that you don't ever want to be done.
Maintenance
Unassigned issues to be addressed in the next maintenance period.
This issue was originally TRAC 9427
This ticket is blocked by :
Originally atoi and atof used to convert string to int and double.
At recently boost::lexical_cast used, which is generally recommended over using atoi and atof, although as was found it http://trac.mantidproject.org/mantid/ticket/9406 boost::lexical_cast does not strip for spaces.
This ticket is proposed to translate all atoi and atof to boost::lexical_cast.
In doing this it has to be checked that the performance of loading IDF does not increase (or only increase very little).
One way of implementing this is to add a private method getStripedAttValue() which returns a string that can be passed to boost::lexical_cast
Keywords: Maintenance
The text was updated successfully, but these errors were encountered: