
Leopoldo Peralta wrote:
This Fatal Error occurs when trying to compile a MSVC 2003 (SP1) project using the proposed Math Toolkit:
Any fix to this error?
Most strange, VC8 handles it fine, and it appears to be a comiler bug, but I can't find a workaround at present, so the diff below is the only fix I have for now. John. Index: ../../../boost/math/special_functions/log1p.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/math/special_functions/Atti c/log1p.hpp,v retrieving revision 1.1.2.11 diff -u -r1.1.2.11 log1p.hpp --- ../../../boost/math/special_functions/log1p.hpp 6 Feb 2007 13:32:59 -0000 1.1.2.11 +++ ../../../boost/math/special_functions/log1p.hpp 28 Apr 2007 17:34:33 -0000 @@ -172,7 +172,7 @@ BOOST_CURRENT_FUNCTION); return ::log1p(x); } -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && (BOOST_MSVC >= 1400) // // You should only enable this branch if you are absolutely sure // that your compilers optimizer won't mess this code up!!