Boost logo

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); }
inline double rint(double x)
_asm FLD [x] ;
_asm FRNDINT ;
//_asm RET ;

In msvc_rounding_control.hpp.

HTH, John.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at