Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-02-02 08:30:25


> I just played a little bit with the
> regex_token_iterator ( boost v 1.32) and modified the
> "html" example.
> I found this (strange?) behavior when i "tokenize" a
> string.
>
> while (i != j)
> {
> std::cout << i++->str().length() << std::endl;
> }
>
> crashes at runtime at the last sub-match of a match
> with:

> Is this behavior a bug, or is it correct, that the
> first version does not work, if yes, why?

I can't reproduce that, can you provide test case?

The assertion will occur if you try to access an end of sequence iterator
BTW, but obviously that should not occur with the code snippet you posted.

Thanks,

John Maddock.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net