Boost logo

Boost :

Subject: Re: [boost] Preliminary submission: generic linear algebra algorithms library Boost LA
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2009-11-22 21:42:10

Emil Dotchevski escribió:
> 2009/11/22 Agustín K-ballo Bergé <kaballo86_at_[hidden]>:
>> I should have been more specific, I was expecting the operators to just
>> work for la::vref and la::mref. And probably for any other view too.
> Oh, vref/mref and other views will find the operator overloads through
> ADL. If you have a case where this doesn't work, please post some code
> and I'll take a look.

#include <boost/la/all.hpp>

int main()
        //using namespace boost::la;

        float vector[3] = { 1, 2, 3 };

        boost::la::vref( vector ) *= 2;
        ( boost::la::vref( vector ) | boost::la::X ) = 0;

    return 0;

Both operations fail unless `using namespace boost::la`. ADL has nothing
to do since vref returns a `boost::la::la_detail::vref_<T>` and
operators are defined at `boost::la`.

I'm using the version refered to by your original post, is there an
update somewhere?

Agustín K-ballo Bergé.-

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