Hello,

My program crashes at the point shown below. This message was a bit
different, though. It said the failure was at xstring, line 137? 

If I understand it correctly, asserts are for checking the state of a
variable??

I don't know what caused it. How does one debug one of these types of
messages??

vector<string> ret;
iter pos = str.begin(), e = pos;

for(int x = 0; e != str.end() && x != 10; x++){         
                ++e;
        }

ret.push_back(string(pos, e)); /*--program fails here--*/

any help would be greatly appreciated!

Reply via email to