
11 Feb
2010
11 Feb
'10
5:52 a.m.
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 ? w/r to the swizzling operation, we have prototype for a : v[_2,_3,_1] = ... syntax in NT2, and currently, it doesn't seem to fail us.