Merge pull request #38 from tanzislam/fix-macro-use-with-template-parameters

Fix BOOST_STATIC_ASSERT with template arguments
This commit is contained in:
Peter Dimov
2019-10-25 14:06:07 -07:00
committed by GitHub

View File

@ -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
{
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;