
21 Jan
2011
21 Jan
'11
9:31 p.m.
On 21 January 2011 10:55, Dave Abrahams <dave@boostpro.com> wrote:
Do you want to prevent 1. wholesale mutation such as
x = y x += y
or just
2. per-char mutation such as
x[10] = 'a'
?
Eliminating #2 but not #1 would force c_str() to make a (possibly tracked) copy, to avoid #2 on its internal buffer (due to the trailing '\0' byte). -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404