Boost logo

Boost :

Subject: Re: [boost] Preliminary submission: generic linear algebra algorithms library Boost LA
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-11-22 21:21:33


2009/11/22 Agustín K-ballo Bergé <kaballo86_at_[hidden]>:
> Emil Dotchevski escribió:
>> 2009/11/21 Agustín K-ballo Bergé <kaballo86_at_[hidden]>:
>>> · Operators don't work unless boost::la namespace is bring into scope,
>>> couldn't ADL kick in?
>>
>> No, ADL can not kick in because the overloads are in namespace
>> boost::la and the user-defined types they are typically called with
>> are in other namespaces. You can safely bring boost::la into scope
>> globally, the overloads this will introduce will not clash with
>> anything.
>>
> 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.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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