Boost logo

Boost :

From: Emil Dotchevski (emil_at_[hidden])
Date: 2008-05-02 18:09:41


On Fri, May 2, 2008 at 3:02 PM, Michael Fawcett
<michael.fawcett_at_[hidden]> wrote:
> 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
vectors.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk