I agree with you. But one thing I don't understand is why this problem is not detected by numerous memory debugger. I tried LeakTrace, Valgrind, Totalview, and even insure++, all of which didn't...
Type: Posts; User: alleecs
I agree with you. But one thing I don't understand is why this problem is not detected by numerous memory debugger. I tried LeakTrace, Valgrind, Totalview, and even insure++, all of which didn't...
I have confirmed x[i] exist for all i in [0,n) through debugger.
Though I am using a vector of lists in the code, I think the problem purley orginates from std::list.push_back(). As far as I know,...
In my current case, n = 20 and m is an integer array of length n = 20 such that 1 <= m[i] <= 40 for all i in [0,20). Sorry I tried to abstract these facts since I knew they aren't the error factors.
The syntax looks alright to me. r is pushed back on the i'th list x[i].
- EJ
Hello,
I'm a C++ newbie and having a hard time figuring out this bug.
I am basically doing the following thing:
std::vector< std::list<int> > x;