Opened 9 years ago

#9747 new Bugs

Warning from template_arity_impl<F,N> using GCC 4.8.2

Reported by: Hartmut Schirmer <h.schirmer@…> Owned by: Aleksey Gurtovoy
Milestone: To Be Determined Component: mpl
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.