Skip to content
Snippets Groups Projects
Commit ce9f4bc6 authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Removing some C++14isms from cps_recv's admin code.

Removing lambda capture initializers as they are C++14 and we are building C++11 for now.
parent 25ea2e24
No related branches found
No related tags found
1 merge request!180Discoverable cps recv admin
......@@ -79,12 +79,12 @@ namespace cps_admin
read_request( )
{
req_ = {};
auto self = shared_from_this( );
http::async_read( s_,
buffer_,
req_,
[self = shared_from_this( )](
const boost::system::error_code& ec,
std::size_t bytes_transferred ) {
[self]( const boost::system::error_code& ec,
std::size_t bytes_transferred ) {
if ( ec )
{
return;
......@@ -105,13 +105,14 @@ namespace cps_admin
auto resp_ptr =
std::make_shared< response_type >( std::move( resp ) );
resp_ptr->keep_alive( false );
http::async_write( s_,
*resp_ptr,
[self = shared_from_this( ), resp_ptr](
const boost::system::error_code& ec,
std::size_t bytes_transferred ) {
// let it close.
} );
auto self = shared_from_this( );
http::async_write(
s_,
*resp_ptr,
[self, resp_ptr]( const boost::system::error_code& ec,
std::size_t bytes_transferred ) {
// let it close.
} );
}
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment