
12 May
2004
12 May
'04
9:56 p.m.
"Reece Dunn" <msclrhd@hotmail.com> writes:
I presume you're referring to fixed-capacity strings which can have a variable size, right?
yup. The idea is to make it a buffer-overflow safe replacement for C style character buffers, e.g.:
char buf[ 100 ]; ::sprintf( buf, "...", ... );
while allowing it to behave like a basic_string.
Why not make an unlimited-size string with a parameterized internal "small string optimization" buffer? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com