Boost logo

Boost :

Subject: [boost] [math] Comeau can't match math::tools::fmod_workaround
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2009-11-26 14:10:22


Hi,

I'm not sure if I should submit this issue directly to Trac, so I
decided to post it here first. Compiling Boost.Math using Comeau + GCC
on Linux throws error that suggests mismatch of dobule and long double
where single type T is expected:

como-linux.compile.c++
../../../bin.v2/libs/math/build/como-linux/debug/link-static/ellint_3l.o
Comeau C/C++ 4.3.10.1 (May 7 2008 12:23:21) for LINUX_INTEL_ELF_Beta
Copyright 1988-2008 Comeau Computing. All rights reserved.
MODE:non-strict warnings C++ noC++0x_extensions

"../../../boost/math/special_functions/ellint_3.hpp", line 185: error: no
          instance of function template
"boost::math::tools::fmod_workaround"
          matches the argument list
            argument types are: (double, long double)
         T rphi = boost::math::tools::fmod_workaround(fabs(phi),
T(constants::pi<T>() / 2));
                  ^
          detected during instantiation of "T
                    boost::math::detail::ellint_pi_imp(T, T, T, T, const
                    Policy &) [with T=long double,
                    Policy=c_policies::c_policy]" at line 309

1 error detected in the compilation of
"../../../libs/math/build/../src/tr1/ellint_3l.cpp".

    como -tused -c --long_long -DBOOST_ALL_NO_LIB=1 -D_GNU_SOURCE=1
--no_inlining -O0 -g --exceptions -I"../../.."
-I"../../../libs/math/src/tr1" -o
"../../../bin.v2/libs/math/build/como-linux/debug/link-static/ellint_3l.o"
"../../../libs/math/build/../src/tr1/ellint_3l.cpp"

Could any one confirm if it is an error indeed?
Should I submit ticket?

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk