Opened 14 years ago

Closed 12 years ago

#2761 closed Bugs (fixed)

Array::static_size needs to be cast to int in adapted array_iterator.hpp

Reported by: Stjepan Rajko Owned by: Joel de Guzman
Milestone: Boost 1.39.0 Component: fusion
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

The line:

BOOST_MPL_ASSERT_RELATION(Pos, <=, Array::static_size);

Can cause:

/boost/boost/fusion/adapted/array/array_iterator.hpp:29: error: 'boost::array<ame::patterns::normal_model_state, 12ul>::<anonymous enum>' is/uses anonymous type /boost/boost/fusion/adapted/array/array_iterator.hpp:29: error: trying to instantiate 'template<class Seq1, class Seq2> struct boost::fusion::detail::enable_comparison'

Casting Array::static_size to int solves the problem. See: http://www.nabble.com/-fusion--mpl--array--making-boost-array-a-conforming-mpl-sequence-(through-fusion)-td21940889.html

Change History (1)

comment:1 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [62893]) Explicitly cast array::static_size to an int. Fixes #2761

Note: See TracTickets for help on using tickets.