Boost logo

Boost :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2002-10-02 08:33:47


This flag should be set when compiling ublas with mipspro, otherwise you get :

cc-1282 CC: ERROR File =
/home/fft/tk//femtown/../boost/boost/numeric/ublas/traits.hpp, Line = 202
  More than one instance of overloaded function "std::abs" matches the
argument
          list.

            Function symbol function "std::abs(const std::complex<float> &)"
                      is ambiguous by inheritance.
            Function symbol function
                      "std::abs(const std::complex<long double> &)" is
                      ambiguous by inheritance.
            The argument types are: (
                      
boost::numeric::ublas::type_traits<double>::const_referen
                      ce).
              return std::abs (t);

But this is a ublas-specific flag although this is not a ublas specific
problem. And the flag is even not necessary when ublas explicitly states the
value_type of the std::abs call so I'm not sure what the best way is to patch
this.

toon


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