c++ - Overlapping source and destination blocks in memcpy with boost -


can explain me why on c++ simple code valgrind returns this.

first problem boost:regex. when use subpattern question mark (for optional matching) valgrind return:

source , destination overlap in memcpy (line 8)

second problem std::string::erase.

i have no idea doing wrong.

seems library code using memcpy when, strictly portable, should using memmove.

for compiler's library, std::string, ok code doesn't have portable other compilers, , can use knowledge how specific implementation works.

with boost library, have trust know doing. library has lot of configurations different compilers , might use specific g++ extension.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -