Boost logo

Boost Users :

Subject: Re: [Boost-users] [Fusion] value_at_c and its relatives not applicable to Associative Sequence?
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-03-20 23:22:03


On 3/21/2011 8:20 AM, Joel de Guzman wrote:
> On 3/20/2011 10:39 PM, TONGARI wrote:
>> Hi,
>>
>> the document says that 'value_at_c' accepts a Forward Sequence, and
>> set/map, which is of Associative Sequence as well as Forward Sequence, why the following
>> does not work?
>>
>> #include <boost/fusion/include/value_at.hpp>
>> #include <boost/fusion/include/set.hpp>
>>
>> int main()
>> {
>> namespace fs = boost::fusion;
>> typedef fs::result_of::value_at_c<fs::set<int>, 0> >::type type;
>> return 0;
>> }
>
> ForwardSequence does not have value_at_c, only RandomAccessSequence
> have that.

Ok, the docs are wrong. I'm fixing it.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

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