Re: [Boost-users] rint, the interval library and Visual Studio 2008

19 Nov
2008
19 Nov
'08
7:59 a.m.
#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.
Thanks John, that helped a lot and is by far more elegant than my solution (simply add a rint implementation to my project). Perhaps your solution should be included in the next boost version. Best regards & thanks Stephan
5940
Age (days ago)
5940
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stephan Puchegger