[fluxus] build error: PDataArithmetic.cpp
Dave Griffiths
dave at pawfal.org
Tue Nov 29 01:37:19 PST 2005
> template <>
> PData *ClosestOperator::Operate(TypedPData<dVector> *a, dVector *b)
> {
> float closestdist=999999;
> dVector closest;
> for (unsigned int i=0; i<a->Size(); i++)
> {
> float dist = a->m_Data[i].dist(*b);
>
> ...and then it compiles without warnings! If this is a sane change,
> I can commit it to cvs...
well spotted! bad programming by me... all's good, except it should be the
other way round - take the * out of the cpp file so the dVector's pass by
value.
does that work too?
cheers,
dave
More information about the Fluxus
mailing list