From 071b404f805ddfe48ffe6c4b7287161d5ccf6c05 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 7 Aug 2013 18:42:19 -0700 Subject: [PATCH] Fix use sites of BOOST_ASIO_MOVE_ARG --- .../modules/beast_asio/sockets/beast_SocketBase.h | 12 ++++++------ modules/ripple_asio/tests/ripple_AsioTests.cpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Subtrees/beast/modules/beast_asio/sockets/beast_SocketBase.h b/Subtrees/beast/modules/beast_asio/sockets/beast_SocketBase.h index 8259526d83..fa7c1c8f64 100644 --- a/Subtrees/beast/modules/beast_asio/sockets/beast_SocketBase.h +++ b/Subtrees/beast/modules/beast_asio/sockets/beast_SocketBase.h @@ -126,7 +126,7 @@ protected: typedef void result_type; template - CompletionCall (BOOST_ASIO_MOVE_ARG (Handler) handler) + CompletionCall (BOOST_ASIO_MOVE_ARG(Handler) handler) : m_call (new CallType (handler)) { } @@ -150,7 +150,7 @@ protected: template struct CallType : Call { - CallType (BOOST_ASIO_MOVE_ARG (Handler) handler) + CallType (BOOST_ASIO_MOVE_ARG(Handler) handler) : m_handler (handler) { } @@ -187,7 +187,7 @@ protected: typedef void result_type; template - ErrorCall (BOOST_ASIO_MOVE_ARG (Handler) handler) + ErrorCall (BOOST_ASIO_MOVE_ARG(Handler) handler) : m_call (new CallType (handler)) { } @@ -211,7 +211,7 @@ protected: template struct CallType : Call { - CallType (BOOST_ASIO_MOVE_ARG (Handler) handler) + CallType (BOOST_ASIO_MOVE_ARG(Handler) handler) : m_handler (handler) { } @@ -245,7 +245,7 @@ protected: typedef void result_type; template - TransferCall (BOOST_ASIO_MOVE_ARG (Handler) handler) + TransferCall (BOOST_ASIO_MOVE_ARG(Handler) handler) : m_call (new CallType (handler)) { } @@ -269,7 +269,7 @@ protected: template struct CallType : Call { - CallType (BOOST_ASIO_MOVE_ARG (Handler) handler) + CallType (BOOST_ASIO_MOVE_ARG(Handler) handler) : m_handler (handler) { } diff --git a/modules/ripple_asio/tests/ripple_AsioTests.cpp b/modules/ripple_asio/tests/ripple_AsioTests.cpp index d226972b2f..37aba9a047 100644 --- a/modules/ripple_asio/tests/ripple_AsioTests.cpp +++ b/modules/ripple_asio/tests/ripple_AsioTests.cpp @@ -609,7 +609,7 @@ public: template BOOST_ASIO_INITFN_RESULT_TYPE(BufferedHandshakeHandler, void (boost::system::error_code, std::size_t)) handshakePlainAsync (ConstBufferSequence const& buffers, - BOOST_ASIO_MOVE_ARG (BufferedHandshakeHandler) handler) + BOOST_ASIO_MOVE_ARG(BufferedHandshakeHandler) handler) { fatal_assert (asio::buffer_size (buffers) == 0); createPlainStream (); @@ -651,7 +651,7 @@ public: template BOOST_ASIO_INITFN_RESULT_TYPE (BufferedHandshakeHandler, void (boost::system::error_code, std::size_t)) handshakeSslAsync (ConstBufferSequence const& buffers, - BOOST_ASIO_MOVE_ARG (BufferedHandshakeHandler) handler) + BOOST_ASIO_MOVE_ARG(BufferedHandshakeHandler) handler) { createSslStream (); return m_ssl_stream->async_handshake (m_role, buffers, handler);