Blitz logo

Blitz Devel :

From: Manoj Rajagopalan (rmanoj_at_[hidden])
Date: 2005-02-10 10:53:45


hi

  I'm using g++ 3.4.2 and the compiler complains of not finding the +
operator for two TinyVector<double, 3> objects. The candidate it lists is

template<typename T> inline operator +(const T&, bz_null_operand)

   The hack i had to come up with is to create a new
TinyVector<double,3> object with one of the two summands in the
constructor and to use the += operator to add the other summand.

   Does anyone know why this is so?

cheers
Manoj