Someone gave me an error program yesterday. Working in MVS 2010, I found a problem and an alternative for it. The problem was the overloaded class input statement. His prototype was as follows ...
void matrix :: operator << (matrix&) ;
He was called from somewhere like this ...
matrix m ; m.operator << (m) ;
I decided that the compiler does not allow sending the same object as the reference parameter to which the function was called. But I do not understand the reason for this and what it creates. I would be grateful if anyone could explain this. Thanks.
EDIT: Actually, what happens is that after debugging, it enters the function, exits, and when main executed, it goes to the external dependency file dbgdel.cpp and stops at this line.
_ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
Coding mash
source share