Boost logo

Boost :

From: Joerg Walter (jhr.walter_at_[hidden])
Date: 2002-10-04 05:33:08


----- Original Message -----
From: "Toon Knapen" <toon.knapen_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, October 02, 2002 5:59 PM
Subject: [boost] ublas on mipspro

> There's an ambiguous overload on SGI with ublas (although it works with
gcc,
> icc and vacpp). Also specifying explicitly that here I'm working on a
_const_
> matrix (see last line) did not help. So I'm guessing that this is a
> compiler-problem instead of a coding-problem.
>
>
> cc-1282 CC: ERROR File = /home/fft/tk//femtown/modules/field/patch.hpp,
Line
> = 183
> More than one instance of overloaded function
"boost::numeric::ublas::row"
> matches the argument list.
>
> Function symbol function template
> "boost::numeric::ublas::row(M &, size_t)" is
ambiguous
> by inheritance.
> Function symbol function template
> "boost::numeric::ublas::row(const M &, size_t)" is
> ambiguous by inheritance.
> The argument types are: (const
> boost::numeric::ublas::matrix<FEMTown::Real,
> boost::numeric::ublas::row_major,
>
boost::numeric::ublas::unbounded_array<FEMTown::Real>>,
> FEMTown::Field::Patch<FEMTown::Real>::size_type).
> { for(size_type i = 0 ; begin != end ; ++begin, ++i ) set( *begin,
> numerics::row< const MatrixType >( matrix, i ) ) ; }

This reminds me on MSVC 6.0. I typically use
BOOST_NO_FUNCTION_TEMPLATE_ORDERING to disable the const overloads for it.
Are we using the wrong config macro here?

Regards

Joerg


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