Use BOOST_STATIC_ASSERT

fix #380
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:17 -07:00
parent 02033c7412
commit 24fd5ec8af
19 changed files with 142 additions and 203 deletions
+12 -12
View File
@@ -1837,23 +1837,23 @@ public:
void run() override
{
static_assert(std::is_constructible<
stream<socket_type>, boost::asio::io_service&>::value, "");
BOOST_STATIC_ASSERT(std::is_constructible<
stream<socket_type>, boost::asio::io_service&>::value);
static_assert(std::is_move_constructible<
stream<socket_type>>::value, "");
BOOST_STATIC_ASSERT(std::is_move_constructible<
stream<socket_type>>::value);
static_assert(std::is_move_assignable<
stream<socket_type>>::value, "");
BOOST_STATIC_ASSERT(std::is_move_assignable<
stream<socket_type>>::value);
static_assert(std::is_constructible<
stream<socket_type&>, socket_type&>::value, "");
BOOST_STATIC_ASSERT(std::is_constructible<
stream<socket_type&>, socket_type&>::value);
static_assert(std::is_move_constructible<
stream<socket_type&>>::value, "");
BOOST_STATIC_ASSERT(std::is_move_constructible<
stream<socket_type&>>::value);
static_assert(! std::is_move_assignable<
stream<socket_type&>>::value, "");
BOOST_STATIC_ASSERT(! std::is_move_assignable<
stream<socket_type&>>::value);
log << "sizeof(websocket::stream) == " <<
sizeof(websocket::stream<boost::asio::ip::tcp::socket&>) << std::endl;