Boost logo

Boost :

Subject: Re: [boost] [utility] new auto_buffer class --- RFC
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-01 23:55:34


AMDG

Mathias Gaunard wrote:
> Thorsten Ottosen wrote:
>> Basically boost::auto_buffer<T,N> is a C++ version of variable lenght
>> array (from C99).
>
> N is known at compile-time.
> Thus I do not see how it is related to C99 VLAs at all.

N is not the number of elements in the container. N controls how much
stack storage is allocated. The number of elements is dynamic.

In Christ,
Steven Watanabe


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