To correct myself: the operator = is not needed for that kind of assignements. However, I will surely redefine it, for cases like:Originally posted by lyx
All those words for finally you accepting that the operator isn't needed...
I believed you WANTED to write your own operator, didn't you?
1.) anArray = value;
Thanks FYB!Originally posted by FillYourBrain
he could certainly justify an operator=(MyArray & arr). It makes sense to set an array equal to an array. That would be a good example. Not that Carlos is looking for examples from me
2.) anArray = anotherArray;