|
Boost Users : |
Subject: Re: [Boost-users] [fusion][mpl][array] making boost array a conforming mpl sequence (through fusion)
From: Stjepan Rajko (stjepan.rajko_at_[hidden])
Date: 2009-02-14 15:07:43
On Thu, Feb 12, 2009 at 7:52 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> Stjepan Rajko wrote:
>>
>> /Development/boost/boost/fusion/adapted/array/array_iterator.hpp:29:
>> error: 'boost::array<ame::patterns::normal_model_state,
>> 12ul>::<anonymous enum>' is/uses anonymous type
>> /Development/boost/boost/fusion/adapted/array/array_iterator.hpp:29:
>> error: trying to instantiate 'template<class Seq1, class Seq2>
>> struct boost::fusion::detail::enable_comparison'
>>
>> The offending line in array_iterator is:
>> BOOST_MPL_ASSERT_RELATION(Pos, <=, Array::static_size);
>>
>> Commenting out that line results in a successful compile, and the
>> program runs as expected.
>>
>> I would really appreciate it if someone could help me out here, I am
>> in total dark as to why the BOOST_MPL_ASSERT_RELATION is not working
>> correctly, and what fusion::detail::enable_comparison has to do with
>> anything.
>>
>
> Wild guess: try casting Array::static_size to int?
>
That worked - thanks!
Created ticket https://svn.boost.org/trac/boost/ticket/2761
Stjepan
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