Boost logo

Boost :

Subject: Re: [boost] Formal review request: static size matrix/vector linear algebra library (Boost) LA
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-02-11 02:01:43


On Wed, Feb 10, 2010 at 9:52 PM, <Joel.Falcou_at_[hidden]> wrote:
>> Operator [ ] is the best choice, but it can not be overloaded
>> generically because it is required to be a member, for reasons that
>> are beyond my understanding of C++.
>
> I don't see why you can't overlaod generically ?

Because operator [ ] is required to be a member function.

By overloading generically, I mean the way other operators are
overloaded in (Boost) LA: they're namespace-scope functions that
kick-in for any conforming user-defined vector or matrix type.

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