FIX: operator implementation of Vector algebra was wrong and caused memory leaks.
operator+, operator- and operator* were implemented as creating new Vectors and returning its pointer instead of creating an object and returning it as constant. This would cause memory leaks, as these pointers in complex algebraic expressions would never get free'd.
return values of operatorx= with x in {+,-,*} have been made const (suggested by Meyers' Effective C++)
(No files)
Note:
See TracChangeset
for help on using the changeset viewer.