|
Boost Users : |
Subject: Re: [Boost-users] [array] range check (at compile time)
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-02-20 00:21:06
On 2/20/2010 12:42 PM, Scott McMurray wrote:
> On 19 February 2010 23:35, alfC<alfredo.correa_at_[hidden]> wrote:
>>
>> std::clog<<boost::get<2>(a)<<std::endl;
>>
>> Is this implemented already in some other way?
>>
>
> Well, it's in the n3000 C++0x draft (23.3.1.7 array.tuple), so it
> ought to be made available even if there is currently another way.
FYI, Fusion adapts boost array as a fully conforming sequence.
So:
fusion::at_c<2>(a)
is perfectly valid.
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net http://www.facebook.com/djowel Meet me at BoostCon http://www.boostcon.com/home http://www.facebook.com/boostcon
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net