patch: boost/math/special_functions => compile error in asinh.hpp, acosh.hpp and atanh.hpp

Hello boost developers, this is my first mail to boost@lists.boost.org and it is already a bug that I found in the latest release 1.31.0 :-( I tried to compile boost::math::asinh, boost::math::acosh and boost::math::atanh recently and got a compile error "C2039 'abs' : is not a member of '_STL'" on my MSVC6 compiler. I have STLPort 4.5.3 installed and thought, this might be the problem, but then I found out that boost::math::sinc_pi and boost::math::sinhc_pi compile with no errors. To make it short: asinh, acosh and atanh are using ::std::abs, ::std::sqrt and ::std::log - which are not part of the STL. To fix this problem, I have created a patch - see attached files. Best regards, Carsten Huber ------------------------------------------------- Dipl.-Ing. Carsten Huber (Member of the VDE) Software Development Engineer Product Line Diagnostics (PDG) Vector Informatik GmbH Ingersheimer Str. 24 D-70499 Stuttgart Phone : +49 711 80670-0 Fax : +49 711 80670-299 Mailto : carsten.huber@vector-informatik.de Internet: http://www.vector-informatik.de -------------------------------------------------

Paris (U.E.), le 10/05/2004 Bonjour In article <A218733A31901148BDDA4B92CC2FB81E0117028C@vistradpex1.vi.vector.int>, "Huber, Carsten" <Carsten.Huber@vector-informatik.de> wrote:
Hello boost developers,
this is my first mail to boost@lists.boost.org and it is already a bug that I found in the latest release 1.31.0 :-(
I tried to compile boost::math::asinh, boost::math::acosh and boost::math::atanh recently and got a compile error "C2039 'abs' : is not a member of ' STL'" on my MSVC6
The short answer: use a more conforming compiler.
compiler. I have STLPort 4.5.3 installed and thought, this might be the problem, but then I found out that boost::math::sinc pi and boost::math::sinhc pi compile with no errors.
The longer answer: I am updating the special functions, but the primary aim will be to add functionality for the better conforming compilers. The functions sinus cardinal and hyperbolic sinus cardinal are the last I modified before going into limbo for too long, but the other functions are scheduled to be updated. If I find some more time, I will possibly add support for some older compilers, so your input is welcome.
To make it short: asinh, acosh and atanh are using ::std::abs, ::std::sqrt and ::std::log - which are not part of the STL. To fix this problem, I have created a patch - see attached files. ^^^^^^^^^^^^^^^^^^^^^
Where?
Best regards,
Carsten Huber
------------------------------------------------- Dipl.-Ing. Carsten Huber (Member of the VDE)
Software Development Engineer Product Line Diagnostics (PDG) Vector Informatik GmbH Ingersheimer Str. 24 D-70499 Stuttgart Phone : +49 711 80670-0 Fax : +49 711 80670-299 Mailto : carsten.huber@vector-informatik.de Internet: http://www.vector-informatik.de -------------------------------------------------
Merci Hubert Holin
participants (2)
-
Huber, Carsten
-
Hubert Holin