|
Boost : |
Subject: Re: [boost] Interest in StaticVector - fixed capacity vector
From: Andrew Hundt (athundt_at_[hidden])
Date: 2011-10-10 19:20:53
>
>
> > Is there any chance that the error behaviour code be configurable.
> StaticVector
> > looks ideal for embedded environments, BUT commonly exceptions are
> disabled in
> > such an environment. It would be nice to have asserts instead of
> exceptions
> > available in all cases, so that a programmer can check for room on a
> push_back
> > prior to calling it. A specific StaticVector macro would suffice for
> those that
> > need it.
>
> IMHO, That's the whole point of using BOOST_THROW_EXCEPTION(x) instead of a
> naked "throw x"
>
> If exceptions are disabled, then BOOST_THROW_EXCEPTION just calls exit().
>
> -- Marshall
>
> Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>
>
>
I have updated StaticVector to use the BOOST_THROW_EXCEPTION macro, so it
can now be built with exceptions disabled.
Cheers!
Andrew Hundt
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk