|
Boost Users : |
Subject: Re: [Boost-users] rint, the interval library and Visual Studio 2008
From: John Maddock (john_at_[hidden])
Date: 2008-11-18 11:14:38
Stephan Puchegger wrote:
>> Dear group members!
>>
>> I am currently using the interval library and the following linker
>> errors pop up:
Nod, MS used to have a rint function and then removed it, apparently without
a replacement!
I'm using this:
#if BOOST_MSVC < 1400
extern "C" { double rint(double); }
#else
inline double rint(double x)
{
_asm FLD [x] ;
_asm FRNDINT ;
//_asm RET ;
}
#endif
In msvc_rounding_control.hpp.
HTH, John.
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