Boost logo

Boost Users :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2006-08-01 16:55:46


On 8/1/06, llwaeva_at_[hidden] <llwaeva_at_[hidden]> wrote:
> But for some reason, I need to perform replacement on a
> C-string (char *), is replace_all_regex safe to do so? Will replace_all_regex handle memory
> issue for us?

Of course this would be impossible. Boost.Regex can't know how the
memory was allocated (e.g. malloc or new or some custom allocator), or
even if it *was* allocated.

Why do you need to operate on raw char*'s? Why can't you operate on
an std::string?

-- 
Caleb Epstein

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