[Boost-bugs] [Boost C++ Libraries] #2761: Array::static_size needs to be cast to int in adapted array_iterator.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #2761: Array::static_size needs to be cast to int in adapted array_iterator.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-14 20:06:53


#2761: Array::static_size needs to be cast to int in adapted array_iterator.hpp
--------------------------+-------------------------------------------------
 Reporter: srajko | Owner: djowel
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: fusion
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2761>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC