error e2093: how to avoid it?
Posted on 2001-06-09
i hope some of you are c++ gurus and can help me:
long time ago i've written my own vector class:
cls_vector mth_sum(cls_vector &rfr_vector_2);
cls_vector operator+(cls_vector &rfr_vector_2);
(both methods do exactly the same)
now i wanted to compile a simple test program with the borland c++ compiler (bcc32):
a.mth_sum(b+a); //a and b are both vector objects
and now i get the following error message:
"e2093 operator '+' not implemented in type 'cls_vector' for arguments of the same type"!
i really don't know what the reason for this error is because i compiled these expressions with turbo c++ without any errors!
and i don't see any difference between these expressions but it still doesn't work!
please help me!