Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-05-12 16:56:21


"Reece Dunn" <msclrhd_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk