Nathan Myers wrote: >Hmm, >string::reserve() is cheap when capacity is already >= its argument, >right? Might as well call it after the swap, just to be sure. > Nathan, I had in mind the _very same_ idea! I will add that, then wait a bit more for more feedback... Paolo.