Thanks, Mathias, but I don't want to erase the entire range. I want to replace all the occurrences of a specific character in that range.
For example, I have a line of text where some sections fall between quotes. I want to replace all commas within these quoted sections. I can find the quoted sections with split_iterator, but none of Boost's replacement functions seem to take a range (which I find a little surprising).