
27 May
2004
27 May
'04
3:26 p.m.
How do I update the length after using buffer() ? Only way I see is: FuncThatFillString(str.buffer(), str.capacity()); str.resize(strlen(str.c_str())); // c_str to avoid fixed_string overload