Boost logo

Boost :

Subject: Re: [boost] Proposal: boost::make_array()
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2013-01-16 03:23:06


On 15-01-2013 13:30, Beman Dawes wrote:
> On Sat, Jan 12, 2013 at 11:45 AM, Kyle Lutz <kyle.r.lutz_at_[hidden]> wrote:
>> I'd like to propose a new function for the Boost Array library named
>> make_array()...
>
> Proposals for make_array have surfaced in the past, both on the Boost
> list and elsewhere. You might want to take a look at some these to
> gain insights.

You can also do

boost::array<int,42> a = boost::assign::ref_list_of<3>( 0 )( 1 )( 2 );

-Thorsten


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