Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-08-02 09:11:20


But this is STILL the WRONG formula for the number of digits!

It should be max_digits10.

stream.precision(2 + std::numeric_limits<Source>::digits * 301/1000);

PLEASE can we get at long last get this right so that floats can be
serialized without losing a few bits.

Paul

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow_at_[hidden]
 
|  -----Original Message-----
|  From: boost-bounces_at_[hidden] 
|  [mailto:boost-bounces_at_[hidden]] On Behalf Of Jürgen Hunold
|  Sent: 02 August 2006 08:03
|  To: boost_at_[hidden]
|  Subject: Re: [boost] Spurious warning in lexical_cast.hpp
|  
|  Hi Gennero !
|  
|  An'n Middeweken 02 August 2006, 00:55 hett Gennaro Prota schreven:
|  
|  > The "fix" is in the head only. Shout out very very loud if 
|  you want it
|  > in the RC_1_34_0 branch too :-)
|  
|  The "fix" is wrong. It broke the "else if" statemen at line 
|  150 and my gcc 
|  (4.0.2-SuSE) complains about "boost/lexical_cast.hpp:150: 
|  warning: statement 
|  has no effect".
|  
|  I propose the following patch.
|  
|  Yours,
|  
|  Jürgen
|  
|  -- 
|  * Dipl.-Math. Jürgen Hunold  ! Ingenieurgesellschaft für 
|  * voice: ++49 511 262926 57  ! Verkehrs- und Eisenbahnwesen mbH  
|  * fax  : ++49 511 262926 99  ! Lister Straße 15
|  * juergen.hunold_at_[hidden]   ! www.ivembh.de
|  

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