|
Boost Users : |
From: Laurence Bunnage (Laurence.Bunnage_at_[hidden])
Date: 2007-11-29 11:30:17
Hi Alexander
Using the latest version of lexical_cast (and lcast_precision.hpp)
hasn't made any difference. The code still misbehaves.
I have found a culprit, in terms of a function that when removed does
cure the problem. At the top of the main function, before the test
snippet, I had a call to _Control87(MCW_EM,MCW_EM). Moving the code
snippet before this call makes the code work correctly.
Now comes the rub. My software runs on a system which uses the NI-DAQmx
ANSI C Function Library. In their documentation they state that the
_Control87(MCW_EM,MCW_EM) statement is required to stop their libraries
crashing when compiled with Borland C and Delphi. They claim to have
fixed this issue in later versions of their libraries. Unfortunately,
most of our systems in the field are using an earlier version so
upgrading the library and removing the offending statement is not
possible. Brickwall meet head.
Laurence Bunnage
Software Engineer
e-mail: Laurence.Bunnage_at_[hidden]
TeraView Limited
Registered in England
Registered Office: Platinum Building, St John's Innovation Park,
Cambridge CB4 0WS
Registered Number: 04126946
VAT Number: 770 8883 84
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Alexander
Nasonov
Sent: 28 November 2007 17:29
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [lexical cast] suspected bug
David Abrahams <dave <at> boost-consulting.com> writes:
> If you want attention, it's always a good idea to put the library name
> in the subject line. Cheers,
I replied to the post using gmane interface but I wasn't subscribed
to the list and my reply didn't get through.
Laurence, please try boost-trunk first (download instruction can be
found
at svn.boost.org).
If you can't use svn, either download trunk.tar.bz2 by clicking on
http://beta.boost.org/development/snapshot.php/trunk
or copy boost/detail/lcast_precision.hpp and boost/lexical_cast.hpp to
your local copy of boost (don't forget to backup a previous version of
lexical_cast.hpp).
Precision setting has changed a lot since 1.34.
-- Alexander _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net