Boost logo

Boost :

From: frederic.bron_at_[hidden]
Date: 2008-01-08 01:34:25

Ok, this explains why your library is so usefull (thank you). My concern is that I have lots of tests that I would like to run on different machines/systems and the easiest way to check the results is
to compare output text files with reference text files. This is not possible because Windows writes 1.0e+003 and linux 1.0e+03! I think this is something missing in the standard that would really


boost-bounces_at_[hidden] a écrit sur 07/01/2008 19:26:30 :

> frederic.bron_at_[hidden] wrote:
> >
> > it would be really portable if you dealt with the representation
> of the exponent in scientific notation
> > because this is not clearly stated in the standard (i.e. the
> number of digits of the exponent is greater or equal to 2 but some
> compiler write 2 and some others 3 which makes non portable outputs).
> > example: 1.0e+003 or 1.0e+03.
> Portability of formatting and parsing means that output that has
> been formatted by one
> implementation of the standard library can be parsed by other
> implementations of the standard library.
> Hence, as long as all implementations of the standard library can
> parse both 1.0e+003 or 1.0e+03
> there is no portability issue here.
> The representation of infinity and NaN is a more serious matter.
> Some implementations of the standard library do format them in a way
> that other implementations can not parse.
> This can for instance cause deserialization of text archives to crash.

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.

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