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.

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