Page 3 of 3
Re:VC++ STL Vector problem
Posted: Fri Feb 03, 2006 2:45 pm
by Colonel Kernel
Doh, you're right -- I was thinking assignment operator, not copy constructor.
Re:VC++ STL Vector problem
Posted: Sun Feb 05, 2006 1:56 pm
by Kemp
And it works
It actually works. Apparently you were exactly right, and the copy constructors did make all the difference. Thanks for all the help guys, now I just need to work out the other hundred or so bugs ::)
Thanks again
Re:VC++ STL Vector problem
Posted: Mon Feb 06, 2006 1:44 am
by Solar
No problem, I was happy to help.
Perhaps next time you believe us right away...?!?
Re:VC++ STL Vector problem
Posted: Mon Feb 06, 2006 4:01 am
by Kemp
Yeah, I probably should believe you quicker, you have like a million times the experience I have
It just completely threw me because I couldn't see how pushing an object with a couple of invalid pointers onto a vector could produce results very akin to corrupting the stack. Oh well, time to make sure all my copy constructors are solid.