[Boost-bugs] [Boost C++ Libraries] #7304: size of a fusion sequences is signed, should be unsigned

Subject: [Boost-bugs] [Boost C++ Libraries] #7304: size of a fusion sequences is signed, should be unsigned
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-30 14:20:47


#7304: size of a fusion sequences is signed, should be unsigned
-------------------------------------+--------------------------------------
 Reporter: mgaunard | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 fusion::result_of::size< fusion::vector<int, int> >::type::value is
 signed, even though it should be size_t.

 It appears the problem is two-fold:
  - fusion::result_of::size<T>::value is not the same type as
 fusion::result_of::size<T>::type::value_type
  - size of fusion::vector is defined to be a mpl::int_ (it also seems it
 is the case for all fusion sequences types!)

 The fact that this is wrongly signed causes all sorts of warnings.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7304>
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:50:10 UTC