On 30.03.2011 1:02, bearophile wrote:
  the second operand often is not a set, so I can't use operators.
How's that ?
Implementing simplistic vector struct I made * to work on both vectors (meaning dot product) and scalars (meaning scaling).
Template constraints + opBinaryRight for the win!
P.S. Though I'd prefer separate functions for that dot and cross product.

--
Dmitry Olshansky

Reply via email to