[Insight-developers] about class Vector

Xinwei Xue xwxue@cs.utah.edu
Tue, 1 Jan 2002 11:06:53 -0700 (MST)


Hi,


I declared a vector using Vector<T, VectorDimension>  and when I do the
following assignment, there was such error: "assignment of readonly
location". I though we should be  able to assign value to single vector
element, since it is a subclass of Array. Does anyone know the reason
why the error occurs?

Vector<T,VectorDimension> vectorF; //declared as a class member

vectorF[0] = somevalue;  //assigned in a member function;


Thanks,

Xinwei