
On Sun, Mar 1, 2009 at 4:04 PM, Thorsten Ottosen <thorsten.ottosen@dezide.com> 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