Sunday, November 24, 2013

Can the heap (free store) be corrupted by passing a vector by value to a function?

Newsgroup: comp.lang.c++

Subject: Can the heap (free store) be corrupted by passing a vector by value to a function?

From: bobl0456@...

Date: Sun, 24 Nov 2013 11:23:40 -0800 (PST)



If you mistakenly passed a vector by value to a function and the function modified the vector, could such action cause the heap to become corrupted?



It would seem to me that the answer to my question is yes.



Thanks in advance,



Bob







via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?135204-Can-the-heap-(free-store)-be-corrupted-by-passing-a-vector-by-value-to-a-function&goto=newpost

View all the progranning help forums at:

http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums

No comments:

Post a Comment