Boost logo

Boost :

From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2002-06-30 15:23:58


Hello,

I noticed that the regression test of Boost.Quaternion did not compile in
Comeau non-strict (Microsoft) mode. Looking deeply, it seems that the
problem is only that it relieson Koenig lookup in several points. Since we
already define a macro to detect the presence of this feature, I fixed it
quickly.

quaternion.hpp, add at line 48:

#ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
  using ::std::abs; // for abs(valarray<>)
#endif

quaternion_test.cpp, add at line 32:

#ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
using ::boost::math::real;
using ::boost::math::unreal;
using ::boost::math::sup;
using ::boost::math::l1;
using ::boost::math::abs;
using ::boost::math::norm;
using ::boost::math::conj;
using ::boost::math::exp;
using ::boost::math::pow;
using ::boost::math::cos;
using ::boost::math::sin;
using ::boost::math::tan;
using ::boost::math::cosh;
using ::boost::math::sinh;
using ::boost::math::tanh;
#endif

Boost.Octonion requires a similar patch. If needed, I can provide the full
patch for it as well.

Giovanni Bajo


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