Boost logo

Boost :

Subject: Re: [boost] Range to boost::array / make_array?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-04-16 17:14:12


On Mon, Apr 16, 2012 at 8:20 PM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> On 16/04/12 18:29, Olaf van der Spek wrote:
>>
>> Hi,
>>
>> Is there a convenient function to make an array from a range?
>> I got a map with string keys which I'd like to replace with
>> array<char, 32>  keys, but I'm missing said function.
>>
>
> copy_range< array<char, 32> >(r)

1>c:\vc\include\boost\range\iterator_range_core.hpp(640): error C2661:
'boost::array<T,N>::array' : no overloaded function takes 2 arguments

-- 
Olaf

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