forked from boostorg/static_assert
Merge pull request #16 from igaztanaga/patch-1
Small fix for Wsign-conversion
This commit is contained in:
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
|
#include <cstddef> //for std::size_t
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||||
//
|
//
|
||||||
@ -81,7 +82,7 @@ template <bool x> struct STATIC_ASSERTION_FAILURE;
|
|||||||
template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };
|
template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };
|
||||||
|
|
||||||
// HP aCC cannot deal with missing names for template value parameters
|
// HP aCC cannot deal with missing names for template value parameters
|
||||||
template<int x> struct static_assert_test{};
|
template<std::size_t x> struct static_assert_test{};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user