mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix gcc compile errors
This commit is contained in:
@@ -104,7 +104,7 @@ public:
|
||||
{
|
||||
void* const object = native_object_raw ();
|
||||
if (object == nullptr)
|
||||
throw std::bad_cast ("null pointer");
|
||||
Throw (std::bad_cast (), __FILE__, __LINE__);
|
||||
return *static_cast <Object*> (object);
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ private:
|
||||
|
||||
template <typename MutableBufferSequence, typename ReadHandler>
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(ReadHandler, void (boost::system::error_code, std::size_t))
|
||||
async_read_some (MutableBufferSequence const&, BOOST_ASIO_MOVE_ARG(ReadHandler),
|
||||
async_read_some (MutableBufferSequence const&, BOOST_ASIO_MOVE_ARG(ReadHandler) handler,
|
||||
boost::false_type)
|
||||
{
|
||||
#if BOOST_ASIO_HAS_FUTURE_RETURNS
|
||||
@@ -259,7 +259,7 @@ private:
|
||||
get_io_service ().post (boost::bind (handler, ec, 0));
|
||||
return init.result.get();
|
||||
#else
|
||||
system::error_code ec;
|
||||
boost::system::error_code ec;
|
||||
ec = pure_virtual (ec);
|
||||
get_io_service ().post (boost::bind (handler, ec, 0));
|
||||
#endif
|
||||
@@ -284,7 +284,7 @@ private:
|
||||
|
||||
template <typename ConstBufferSequence, typename WriteHandler>
|
||||
BOOST_ASIO_INITFN_RESULT_TYPE(WriteHandler, void (boost::system::error_code, std::size_t))
|
||||
async_write_some (ConstBufferSequence const&, BOOST_ASIO_MOVE_ARG(WriteHandler),
|
||||
async_write_some (ConstBufferSequence const&, BOOST_ASIO_MOVE_ARG(WriteHandler) handler,
|
||||
boost::false_type)
|
||||
{
|
||||
#if BOOST_ASIO_HAS_FUTURE_RETURNS
|
||||
@@ -296,7 +296,7 @@ private:
|
||||
get_io_service ().post (boost::bind (handler, ec, 0));
|
||||
return init.result.get();
|
||||
#else
|
||||
system::error_code ec;
|
||||
boost::system::error_code ec;
|
||||
ec = pure_virtual (ec);
|
||||
get_io_service ().post (boost::bind (handler, ec, 0));
|
||||
#endif
|
||||
@@ -359,7 +359,7 @@ private:
|
||||
get_io_service ().post (boost::bind (handler, ec));
|
||||
return init.result.get();
|
||||
#else
|
||||
system::error_code ec;
|
||||
boost::system::error_code ec;
|
||||
ec = pure_virtual (ec);
|
||||
get_io_service ().post (boost::bind (handler, ec));
|
||||
#endif
|
||||
@@ -425,7 +425,7 @@ private:
|
||||
get_io_service ().post (boost::bind (handler, ec, 0));
|
||||
return init.result.get();
|
||||
#else
|
||||
system::error_code ec;
|
||||
boost::system::error_code ec;
|
||||
ec = pure_virtual (ec);
|
||||
get_io_service ().post (boost::bind (handler, ec, 0));
|
||||
#endif
|
||||
@@ -482,7 +482,7 @@ private:
|
||||
get_io_service ().post (boost::bind (handler, ec));
|
||||
return init.result.get();
|
||||
#else
|
||||
system::error_code ec;
|
||||
boost::system::error_code ec;
|
||||
ec = pure_virtual (ec);
|
||||
get_io_service ().post (boost::bind (handler, ec));
|
||||
#endif
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/asio/ssl.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/type_traits.hpp>
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ private:
|
||||
public:
|
||||
static char const* getCountedObjectName () { return "Peer"; }
|
||||
|
||||
PeerImp::PeerImp (boost::asio::io_service& io_service,
|
||||
PeerImp (boost::asio::io_service& io_service,
|
||||
boost::asio::ssl::context& ctx,
|
||||
uint64 peerID,
|
||||
bool inbound)
|
||||
|
||||
Reference in New Issue
Block a user