Avoid std::size_t since no <cstddef> include is present

This commit is contained in:
Ion Gaztañaga
2023-01-19 06:30:18 +01:00
parent 9cbef2df94
commit bbd3a99dca

View File

@@ -119,13 +119,13 @@ struct STATIC_ASSERTION_FAILURE;
template<>
struct STATIC_ASSERTION_FAILURE<true>{};
template<std::size_t> struct static_assert_test {};
template<unsigned> struct static_assert_test {};
}}
#define BOOST_MOVE_STATIC_ASSERT(B) \
typedef ::boost::move_detail::static_assert_test<\
sizeof(::boost::move_detail::STATIC_ASSERTION_FAILURE<bool(B)>)>\
(unsigned)sizeof(::boost::move_detail::STATIC_ASSERTION_FAILURE<bool(B)>)>\
BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_ATTRIBUTE_UNUSED
#endif