// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // // VFALCO This causes a compilation error #include // Test that header file is self-contained. #include #include #include #include #include #include namespace boost { namespace beast { namespace websocket { class ssl_test : public unit_test::suite { public: template void testTeardown() { net::io_context ioc; net::ssl::context ctx(net::ssl::context::sslv23); Socket ss(ioc, ctx); struct handler { void operator()(error_code) { } }; websocket::stream ws(ioc, ctx); BEAST_EXPECT(static_cast< void(websocket::stream::*)( close_reason const&)>( &websocket::stream::close)); BEAST_EXPECT(static_cast< void(websocket::stream::*)( close_reason const&, error_code&)>( &websocket::stream::close)); } void run() override { testTeardown< boost::asio::ssl::stream< boost::asio::basic_stream_socket< boost::asio::ip::tcp, boost::asio::executor>>>(); } }; BEAST_DEFINE_TESTSUITE(beast,websocket,ssl); } // websocket } // beast } // boost