Boost logo

Boost Users :

From: Darren Garvey (lists.drrngrvy_at_[hidden])
Date: 2007-08-21 13:56:09


On 21/08/07, Panayiotis <panayk_at_[hidden]> wrote:
>
> --- snip ---
> The problem is that:
> a) I don't know the size at compile time.
> b) Once initialized, the array's size stays constant, so vector would be
> overkill.

There's probably a better way to do this that I don't know about, but one
fall-back could be boost::any (http://boost.org/libs/any).

hth,
Darren



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net