Subject: Re: [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-09-06 13:50:19
#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
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by djowel):
Pedantic. fusion follows MPL's implementation which also uses int
(signed). See the implementation of mpl::list for example. And see :
http://www.boost.org/doc/libs/1_51_0/libs/mpl/doc/refmanual/forward-
sequence.html which specifies size as an Integral Constant with no
requirement that it be unsigned. E.g. (mpl::vector):
template<>
struct size_impl< aux::vector_tag<1> >
{
template< typename Vector > struct apply
: long_<1>
{
};
};
Anyway, if you have a patch (it's library wide), I'd welcome it, but i
wonder how it would jive with MPL. E.g.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7304#comment:1> 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