Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-01-30 12:06:53


"David Abrahams" <dave_at_[hidden]> wrote in message
news:87slr5bu6z.fsf_at_boost-consulting.com...
> "Paul A Bristow" <pbristow_at_[hidden]> writes:
>
>> | -----Original Message-----
>> | From: boost-bounces_at_[hidden]
>> | [mailto:boost-bounces_at_[hidden]] On Behalf Of Hartmut Kaiser
>> | Sent: 29 January 2006 23:31
>> | To: boost_at_[hidden]
>> | Subject: [boost] [Review] Fixed Strings review period extended
>>
>> As another silent downloader, I just want to agree that we really do need
>> a
>> fixed_string,
>
> Why?

Usage of big stack buffer for string formatting was (is?) usual practice in
C programming. Especially for error message formatting. Nowadays need for
stack_string (which IMO would be a better name) is unclear. In practice it's
just an attempt on performance improvements. I guess it could be useful in
performance critical areas where need for dynamic allocation could hurt. An
alternative is having std::string somewhere cashed. But we a) may not place
for it b) still do not want to depend on performance on dynamic clear/resize
methods.

Gennadiy


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