This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/asio.hpp> | |
#include <boost/bind.hpp> | |
#include <cstdint> | |
#include <iostream> | |
#include <list> | |
#include <memory> | |
struct Connection { | |
boost::asio::ip::tcp::socket socket; | |
boost::asio::streambuf read_buffer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename T> | |
class MoveCapture { | |
mutable T m_value; | |
public: | |
MoveCapture( ) = delete; | |
MoveCapture( T && val ) : m_value( std::move( val ) ) { } | |
MoveCapture( MoveCapture const & other ) : m_value( std::move( other.m_value ) ) { } | |
MoveCapture& operator=(MoveCapture const & rhs) { |
NewerOlder