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


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:

Comeau C/C++ (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
          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

    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

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

Best regards,

Mateusz Loskot,
Charter Member of OSGeo,

Boost list run by bdawes at, gregod at, cpdaniel at, john at