Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-04-06 12:33:39

| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Damien Fisher
| Sent: 06 April 2006 16:23
| To: boost_at_[hidden]
| Subject: Re: [boost]
| [serialization]Serialisation/deserialisationoffloating-point values
| >From your previous comments it sounds like there is a real
| problem in MSVC.
| But from this comment it sounds like maybe not? Or maybe I'm
| misunderstanding your comment (i.e., does it just apply to
| the example you gave?).

It helps to use debug mode if you expect an assert to fire ;-) Doh!

Attached is a test that DOES fail for me, and I will post a fuller test to
the vault when I can.

Sorry for noise.


PS A possible workaround:

std::stringstream s;
ss << scientific << output_value;

works for all cases tried (100000000).

This will increase the size of the XML (for exmaple) archive file, of
course, but...

PPS I note that if you repeatedly serialize and restore then you may get a 1
bit creep up each time - it could build up to significant differences.

Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
Phone and SMS text +44 1539 561830, Mobile and SMS text +44 7714 330204
mailto: pbristow_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at