forked from boostorg/endian
Merge pull request #38 from tanzislam/fix-macro-use-with-template-parameters
Fix BOOST_STATIC_ASSERT with template arguments
This commit is contained in:
@@ -108,7 +108,7 @@ inline uint128_type BOOST_ENDIAN_CONSTEXPR endian_reverse_impl( uint128_type x )
|
|||||||
|
|
||||||
template<class T> inline BOOST_CONSTEXPR T endian_reverse( T x ) BOOST_NOEXCEPT
|
template<class T> inline BOOST_CONSTEXPR T endian_reverse( T x ) BOOST_NOEXCEPT
|
||||||
{
|
{
|
||||||
BOOST_STATIC_ASSERT( is_integral<T>::value && !is_same<T, bool>::value );
|
BOOST_STATIC_ASSERT( is_integral<T>::value && !(is_same<T, bool>::value) );
|
||||||
|
|
||||||
typedef typename detail::integral_by_size< sizeof(T) >::type uintN_t;
|
typedef typename detail::integral_by_size< sizeof(T) >::type uintN_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user