28 Jul
2009
28 Jul
'09
7:43 p.m.
Heidi Zhou wrote:
What my code does is copying user buffer (containing string to be mached) to an internal allocated buffer and then call boost regexp functions.
In general, it's useful to post the smallest possible complete C++ source file that exhibits the problem, along with your platform, compiler and Boost version. However -- just as a guess -- you might check the lifespan of your internal buffer relative to your use of regexp results. The string searched by regexp functions must persist as long as you continue using their search results.