Enable explicit instantiation of websocket::stream:

fix #1279, close #1319

This enables users to improve compilation performance by explicitly
instantiating the stream template in another TU.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
Damian Jarek authored and Vinnie Falco committed 2018-11-26 18:38:09 -08:00
1 parent 650ddd07c1
commit 8930d437b5
10 files changed
+292 -354

No files matched your search

+1
View File
@@ -29,6 +29,7 @@ add_executable (tests-beast-websocket
rfc6455.cpp
role.cpp
stream.cpp
stream_explicit.cpp
stream_fwd.cpp
teardown.cpp
utf8_checker.cpp
+1
View File
@@ -20,6 +20,7 @@ local SOURCES =
rfc6455.cpp
role.cpp
stream.cpp
stream_explicit.cpp
stream_fwd.cpp
teardown.cpp
utf8_checker.cpp
+15
View File
@@ -0,0 +1,15 @@
//
// Copyright (w) 2016-2017 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
//
// Test that header file is self-contained.
#include <boost/beast/websocket/stream.hpp>
#include <boost/asio/ip/tcp.hpp>
template class boost::beast::websocket::stream<boost::asio::ip::tcp::socket, false>;
template class boost::beast::websocket::stream<boost::asio::ip::tcp::socket, true>;