Fix some -Wsign-conversion warnings

This commit is contained in:
Ion Gaztañaga
2021-12-31 00:59:41 +01:00
committed by Jim King
parent e9e3faf4be
commit c61b1e3508
3 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
namespace boost { namespace mpl { namespace aux {
template< int N > struct arity_tag
{
typedef char (&type)[N + 1];
typedef char (&type)[(unsigned)N + 1];
};
template<

View File

@@ -65,7 +65,7 @@ namespace boost { namespace mpl { namespace aux {
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct arity_tag
{
typedef char (&type)[N + 1];
typedef char (&type)[(unsigned)N + 1];
};
# define AUX778076_MAX_ARITY_OP(unused, state, i_) \

View File

@@ -18,6 +18,7 @@
#include <boost/mpl/aux_/config/arrays.hpp>
#include <boost/mpl/aux_/config/msvc.hpp>
#include <boost/mpl/aux_/config/workaround.hpp>
#include <cstddef>
namespace boost { namespace mpl { namespace aux {
@@ -36,7 +37,7 @@ template<> struct yes_no_tag<true>
};
template< BOOST_MPL_AUX_NTTP_DECL(long, n) > struct weighted_tag
template< BOOST_MPL_AUX_NTTP_DECL(std::size_t, n) > struct weighted_tag
{
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1300)
typedef char (&type)[n];