Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion][mpl][array] making boost array a conforming mpl sequence (through fusion)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-12 21:52:07


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?

In Christ,
Steven Watanabe


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