
11 Feb
2010
11 Feb
'10
7:01 a.m.
On Wed, Feb 10, 2010 at 9:52 PM, <Joel.Falcou@lri.fr> 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