Opened 14 years ago
Closed 13 years ago
#2513 closed Bugs (fixed)
rint not present in Visual Studio 2008
Reported by: | Owned by: | Boris Gubenko | |
---|---|---|---|
Milestone: | Boost 1.38.0 | Component: | interval |
Version: | Boost 1.37.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
The function rint is not present in the libraries of Visual Studio 2008.
I propose, that line 28 in msvc_rounding_control.hpp
extern "C" { double rint(double); }
is replaced with John Maddock's workaround from the boost-users mailing list:
#if BOOST_MSVC < 1400 extern "C" { double rint(double); } #else inline double rint(double x) { _asm FLD [x] ; _asm FRNDINT ; _asm RET ; } #endif
since certain constructs simply do not link right now (the linker complains that the function rint is missing).
Note:
See TracTickets
for help on using tickets.
(In [59350]) Applied patches to fix #2512 and #2513