[Boost-bugs] [Boost C++ Libraries] #9747: Warning from template_arity_impl<F, N> using GCC 4.8.2

Subject: [Boost-bugs] [Boost C++ Libraries] #9747: Warning from template_arity_impl<F, N> using GCC 4.8.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-06 08:40:52


#9747: Warning from template_arity_impl<F,N> using GCC 4.8.2
---------------------------------------------+-----------------------
 Reporter: Hartmut Schirmer <h.schirmer@…> | Owner: agurtovoy
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpl
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
---------------------------------------------+-----------------------
 This code
 {{{
 template< typename F, int N >
 struct template_arity_impl
 {
     BOOST_STATIC_CONSTANT(int, value =
           sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(),
 arity_tag<N>())) - 1
         );
 };
 }}}

 from boost/mpl/aux_/preprocessed/gcc/template_arity.hpp
 assigns int value = sizeof(...) causing a sign-conversion warning.

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