From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-06-02 03:49:49
Preston A. Elder wrote:
> Not entirely true ;)
> Its consistent with iostream, but not DEFAULT iostream - only iostream
> with increased precision. One can accept the same behavior as iostream
> as not a bug only when they don't have to manipulate iostream (ie.
> increase precision) to reveal said bug.
lexical_cast should not lose digits, for example
lexical_cast<string>(1.0000001) == 1.0000001;
cout << 1.0000001;
It's more important use case.
-- Alexander Nasonov http://nasonov.blogspot.com The sick do not ask if the hand that smoothes their pillow is pure, nor the dying care if the lips that touch their brow have known the kiss of sin. -- Oscar Wilde -- This quote is generated by: /usr/pkg/bin/curl -L http://tinyurl.com/veusy \ | sed -e 's/^document\.write(.//' -e 's/.);$/ --/' \ -e 's/<[^>]*>//g' -e 's/^More quotes from //' \ | fmt | tee ~/.signature-quote
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk