Boost logo

Boost :

Subject: Re: [boost] Interest in StaticVector - fixed capacity vector
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-10-15 06:48:55


Dave Abrahams wrote:
> on Fri Oct 14 2011, "Peter Dimov" <pdimov-AT-pdimov.com> wrote:
> > try
> > {
> > do some push_backs into a static_vector; we don't know how many
> > }
> > catch( out_of_capacity& )
> > {
> > // ignore, what we gathered so far is good enough for gov't use
> > }
>
> Yes, it's possible, but highly unusual, for someone to use the class
> that way.

I'm not sure of that either. What makes you think so? What are the "proper"
uses for it?


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