
11 Feb
2010
11 Feb
'10
5:12 p.m.
On Wed, Feb 10, 2010 at 11:20 PM, Joel Falcou <joel.falcou@lri.fr> wrote:
Emil Dotchevski wrote:
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.
Oh yeah OK i see it now. What about:
at(v, (_2,_1,-_3)) = xxx ; ?
Perhaps at<2,1,-3>(v) = xxx This is a possibility, yes. I think it is better if this is a function by default, instead of operator overload. With the function, the operator overload is trivial to implement by the user. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode