Tidy up declarations and files:

* Adjust formatting
* Fix inline namespace warning in main.cpp
* Fix streambuf op ambiguous variadic constructor
* Rename variables for clarity
This commit is contained in:
Vinnie Falco
2016-05-04 11:04:58 -04:00
parent 7eed701682
commit 258cd2cb87
7 changed files with 24 additions and 23 deletions

View File

@@ -12,6 +12,7 @@
#include <beast/handler_alloc.hpp>
#include <beast/prepare_buffers.hpp>
#include <beast/static_streambuf.hpp>
#include <boost/optional.hpp>
#include <cassert>
#include <memory>

View File

@@ -60,11 +60,9 @@ public:
template<class DeducedHandler>
explicit
teardown_ssl_op(
DeducedHandler&& h,
stream_type& stream)
DeducedHandler&& h, stream_type& stream)
: d_(std::make_shared<data>(
std::forward<DeducedHandler>(h),
stream))
std::forward<DeducedHandler>(h), stream))
{
(*this)(error_code{}, false);
}

View File

@@ -32,8 +32,7 @@ class teardown_tcp_op
int state = 0;
template<class DeducedHandler>
data(DeducedHandler&& h_,
socket_type& socket_)
data(DeducedHandler&& h_, socket_type& socket_)
: socket(socket_)
, h(std::forward<DeducedHandler>(h_))
, cont(boost_asio_handler_cont_helpers::