vvector test program

Paolo CALAFIURA (Paolo.Calafiura@cern.ch)
Wed, 14 Jan 1998 12:38:31 +0100


Hi everybody,
in the test program vvector.cxx that I found in 1.03 distribution I
read:
const Real_t pattern = 8.625;
TMatrix m(0,vsize,0,vsize+1);
...
m = pattern;
(TMatrixDiag)m = pattern-3; //line 459

I am used to be baffled by elegant C++ constructs, but this time the
Solaris compiler is not any better than me:
> na48s01:/afs/cern.ch/user/c/calaf/root/test>gmake
> CC -O -KPIC -I/afs/cern.ch/user/c/calaf/root/include -c vvector.cxx
> "vvector.cxx", line 459: Error: The left operand must be a lvalue.
> "vvector.cxx", line 466: Error: The left operand must be a lvalue.
> "vvector.cxx", line 494: Error: The left operand must be a lvalue.
> 3 Error(s) detected.

Where is the trick?

Paolo Calafiura