
15 Mar
2006
15 Mar
'06
12:56 p.m.
Paul A Bristow said: (by the date of Wed, 15 Mar 2006 11:00:23 -0000)
| The problem is clearly with the *de*serialisation. | | Tracing back through the functions, this seems to be the function (in | basic_text_iprimitive.hpp) that reads doubles from XML files: | | void load(T & t) | { | if(is.fail()) | | boost::throw_exception(archive_exception(archive_exception::st | ream_error)); | is >> t; | } | | This suggests that it is a broken feature of Microsoft's | operator>> for doubles read from filestreams.
why not just read the string, ans use boost::lexical_cast<double> ? -- Janek Kozicki |