mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-02 14:24:30 +02:00
Fix some -Wsign-conversion warnings
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
namespace boost { namespace mpl { namespace aux {
|
namespace boost { namespace mpl { namespace aux {
|
||||||
template< int N > struct arity_tag
|
template< int N > struct arity_tag
|
||||||
{
|
{
|
||||||
typedef char (&type)[N + 1];
|
typedef char (&type)[(unsigned)N + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
template<
|
template<
|
||||||
|
@@ -65,7 +65,7 @@ namespace boost { namespace mpl { namespace aux {
|
|||||||
|
|
||||||
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct arity_tag
|
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_) \
|
# define AUX778076_MAX_ARITY_OP(unused, state, i_) \
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
#include <boost/mpl/aux_/config/arrays.hpp>
|
#include <boost/mpl/aux_/config/arrays.hpp>
|
||||||
#include <boost/mpl/aux_/config/msvc.hpp>
|
#include <boost/mpl/aux_/config/msvc.hpp>
|
||||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
|
|
||||||
namespace boost { namespace mpl { namespace aux {
|
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)
|
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
||||||
typedef char (&type)[n];
|
typedef char (&type)[n];
|
||||||
|
Reference in New Issue
Block a user