Boost logo

Boost Users :

Subject: Re: [Boost-users] Corrupted boost::regex::smatch results (on MSVS 2003)
From: John Maddock (john_at_[hidden])
Date: 2009-04-11 04:36:34

>I'm using Boost.Regex from v1.35.0. We're seeing the smatch
>matchresults object getting corrupted when being returned by value from
>a function. The smatch variable is good within the function (it is an
>object defined locally on the stack), but when returned it is corrupted
>with bad data.

What do you mean by bad data?

Is it simply that the iterators have been invalidated because the string
that was matched no longer exists?

HTH, John.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at