Boost logo

Boost :

Subject: Re: [boost] [container] static_vector: fixed capacity vector update
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2013-02-01 00:07:28


2013/1/31 Krzysztof Czainski <1czajnik_at_[hidden]>:
> 2013/1/17 Andrew Hundt <athundt_at_[hidden]>
>
> Hello,
> Thanks for working on static_vector, I'm already using it.
>
> Everything works, with a little fix I needed. Here's the problem
> (disclamer: tested with a more complicated example, not the one below):
>
> static_vector<int,3> v;
> v.emplace_back(); // compile time error
>
> My fix is adding an overload for static_vector_detail::construct, patch
> attached.

Ok, thanks. It's fixed now.

Furthermore I'd like to share some news.

We've decided to slightly change the character of this container and
highlight it's connection with array. Therefore we changed it's name
to varray (variable-size array). The implementation with "Strategy"
template parameter was moved to container_detail namespace. Exposed
class takes 2 template parameters, exactly like boost::array does.

boost::container::varray<T, N> va;

It may be found here:
http://svn.boost.org/svn/boost/sandbox/varray/

Regards,
Adam


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