Boost logo

Boost :

From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2006-03-15 07:56:12


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                                                         |

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk