11 Apr
2009
11 Apr
'09
8:36 a.m.
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.