Boost logo

Boost :

From: Theodore Papadopoulo (Theodore.Papadopoulo_at_[hidden])
Date: 2006-09-21 08:03:07


On Wed, 2006-09-20 at 17:48 +0100, Olivier Grant wrote:

> > > Right now I have three simple vector classes - ranging from vector2d to
> > > vector4d - that are not templetized since I like the idea of being able
> > to
> > > access coordinates directly by their name

Unfortunately, this is not the best choice. As sson as you will have to
iterate through the coordinates, you will find that having an array is
necessary (at least if you do not want to have an awful efficiency....).

        Theo.


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