Boost logo

Boost :

Subject: Re: [boost] [utility] new auto_buffer class --- RFC
From: Beman Dawes (bdawes_at_[hidden])
Date: 2009-03-02 08:50:12


On Sun, Mar 1, 2009 at 4:04 PM, Thorsten Ottosen
<thorsten.ottosen_at_[hidden]> wrote:
> Dear all,
>
> For a long time I have been missing this utility in my own work, and in
> boost related stuff too. I think there are a number of libraries in boost
> that can benefit from this utility. Libs like boost.format can be quite a
> bit more effective. So can logging libraries. etc.
>
> ...
>
> Comments are most welcome.

I think auto_buffer would be a very useful addition to Boost.

A few quick comments:

* Move the comments about VLA's and differences from
stlsoft::auto_buffer to a "Design History" (or similar) section of
documentation. They just confuse readers who don't know anything about
VLA's or have access to Matthew's book.

* Rename N to something more explicit. MaxStackElements perhaps?

* It looks like auto_buffer would often be preferable to
boost::scoped_array. Or am I missing something?

--Beman


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