From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-05-02 18:09:41
On Fri, May 2, 2008 at 3:02 PM, Michael Fawcett
> float magnitude = sqrt(dot_product(point, point));
> The dot_product internals are where the compile-time access takes
> place. dot_product would therefore work on arrays, tuples, and fusion
> tuples out of the box and any custom type simply needs to add get<>
> support (which would hopefully be trivial, perhaps using Fusion).
I didn't follow this discussion so far but I am also in favor of get<>
overloads for types that are tuple-like, including 2D, 3D and 4D
Reverge Studios, Inc.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk