diff --git a/Builds/VisualStudio2013/RippleD.vcxproj b/Builds/VisualStudio2013/RippleD.vcxproj
index 19a351089..78ac8aedd 100644
--- a/Builds/VisualStudio2013/RippleD.vcxproj
+++ b/Builds/VisualStudio2013/RippleD.vcxproj
@@ -794,19 +794,6 @@
-
-
-
-
-
- True
-
-
-
-
-
-
-
diff --git a/Builds/VisualStudio2013/RippleD.vcxproj.filters b/Builds/VisualStudio2013/RippleD.vcxproj.filters
index de45b5fa9..dc7ffcfbd 100644
--- a/Builds/VisualStudio2013/RippleD.vcxproj.filters
+++ b/Builds/VisualStudio2013/RippleD.vcxproj.filters
@@ -1485,24 +1485,6 @@
beast\module\core\streams
-
- beast\module\core\system
-
-
- beast\module\core\system
-
-
- beast\module\core\system
-
-
- beast\module\core\system
-
-
- beast\module\core\system
-
-
- beast\module\core\system
-
beast\module\core\system
diff --git a/src/BeastConfig.h b/src/BeastConfig.h
index 801f7fd24..5ccadf2f4 100644
--- a/src/BeastConfig.h
+++ b/src/BeastConfig.h
@@ -166,16 +166,6 @@
#define RIPPLE_DUMP_LEAKS_ON_EXIT 1
#endif
-/** Config: RIPPLE_TRACK_MUTEXES
- Turns on a feature that enables tracking and diagnostics for mutex
- and recursive mutex objects. This affects the type of lock used
- by RippleMutex and RippleRecursiveMutex
- @note This can slow down performance considerably.
-*/
-#ifndef RIPPLE_TRACK_MUTEXES
-#define RIPPLE_TRACK_MUTEXES 0
-#endif
-
//------------------------------------------------------------------------------
// These control whether or not certain functionality gets
diff --git a/src/beast/beast/insight/impl/StatsDCollector.cpp b/src/beast/beast/insight/impl/StatsDCollector.cpp
index 8d1b1d782..9d6d58644 100644
--- a/src/beast/beast/insight/impl/StatsDCollector.cpp
+++ b/src/beast/beast/insight/impl/StatsDCollector.cpp
@@ -18,17 +18,15 @@
//==============================================================================
#include
+#include
#include
#include
-
#include
-#include
-#include
#include
-
#include
#include
#include
+#include
#include
#include
#include
@@ -238,7 +236,7 @@ public:
: m_journal (journal)
, m_address (address)
, m_prefix (prefix)
- , m_work (boost::ref (m_io_service))
+ , m_work (std::ref (m_io_service))
, m_timer (m_io_service)
, m_socket (m_io_service)
, m_thread (&StatsDCollectorImp::run, this)
@@ -372,10 +370,10 @@ public:
#if BEAST_STATSDCOLLECTOR_TRACING_ENABLED
log (buffers);
#endif
- m_socket.async_send (buffers, boost::bind (
+ m_socket.async_send (buffers, std::bind (
&StatsDCollectorImp::on_send, this,
- boost::asio::placeholders::error,
- boost::asio::placeholders::bytes_transferred));
+ beast::asio::placeholders::error,
+ beast::asio::placeholders::bytes_transferred));
buffers.clear ();
size = 0;
}
@@ -387,10 +385,10 @@ public:
#if BEAST_STATSDCOLLECTOR_TRACING_ENABLED
log (buffers);
#endif
- m_socket.async_send (buffers, boost::bind (
+ m_socket.async_send (buffers, std::bind (
&StatsDCollectorImp::on_send, this,
- boost::asio::placeholders::error,
- boost::asio::placeholders::bytes_transferred));
+ beast::asio::placeholders::error,
+ beast::asio::placeholders::bytes_transferred));
}
m_data.clear ();
}
@@ -398,9 +396,9 @@ public:
void set_timer ()
{
m_timer.expires_from_now (boost::posix_time::seconds (1));
- m_timer.async_wait (boost::bind (
+ m_timer.async_wait (std::bind (
&StatsDCollectorImp::on_timer, this,
- boost::asio::placeholders::error));
+ beast::asio::placeholders::error));
}
void on_timer (boost::system::error_code ec)
diff --git a/src/beast/beast/module/asio/http/HTTPClientType.cpp b/src/beast/beast/module/asio/http/HTTPClientType.cpp
index 2527d372e..a7ba12944 100644
--- a/src/beast/beast/module/asio/http/HTTPClientType.cpp
+++ b/src/beast/beast/module/asio/http/HTTPClientType.cpp
@@ -20,7 +20,7 @@
#include
#include
#include
-
+#include
#include //
namespace beast {
@@ -71,8 +71,8 @@ public:
{
result_type result;
boost::asio::io_service io_service;
- async_get (io_service, url, beast::bind (
- &HTTPClientType::handle_get, beast::placeholders::_1, &result));
+ async_get (io_service, url, std::bind (
+ &HTTPClientType::handle_get, std::placeholders::_1, &result));
io_service.run ();
return result;
}
@@ -656,8 +656,8 @@ public:
HTTPClientBase::New (Journal(), timeoutSeconds));
client->async_get (t.get_io_service (), ParsedURL (s).url (),
- beast::bind (&HTTPClient_test::handle_get, this,
- beast::_1));
+ std::bind (&HTTPClient_test::handle_get, this,
+ std::placeholders::_1));
t.start ();
t.join ();
diff --git a/src/beast/beast/module/asio/system/BoostIncludes.h b/src/beast/beast/module/asio/system/BoostIncludes.h
index 4415e8e5f..471a54a1f 100644
--- a/src/beast/beast/module/asio/system/BoostIncludes.h
+++ b/src/beast/beast/module/asio/system/BoostIncludes.h
@@ -38,22 +38,6 @@
# endif
#endif
-// Unfortunately, we use some boost detail elements
-//
-// https://svn.boost.org/trac/boost/ticket/9024
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
// work-around for broken
#include
diff --git a/src/beast/beast/module/asio/tests/TestPeerBasics.h b/src/beast/beast/module/asio/tests/TestPeerBasics.h
index 676cca2c8..1d7fb87eb 100644
--- a/src/beast/beast/module/asio/tests/TestPeerBasics.h
+++ b/src/beast/beast/module/asio/tests/TestPeerBasics.h
@@ -20,6 +20,8 @@
#ifndef BEAST_ASIO_TESTS_TESTPEERBASICS_H_INCLUDED
#define BEAST_ASIO_TESTS_TESTPEERBASICS_H_INCLUDED
+#include
+
namespace beast {
namespace asio {
diff --git a/src/beast/beast/module/asio/tests/TestPeerLogicAsyncClient.cpp b/src/beast/beast/module/asio/tests/TestPeerLogicAsyncClient.cpp
index af1514875..3dfc4ef92 100644
--- a/src/beast/beast/module/asio/tests/TestPeerLogicAsyncClient.cpp
+++ b/src/beast/beast/module/asio/tests/TestPeerLogicAsyncClient.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace beast {
namespace asio {
@@ -43,8 +45,8 @@ void TestPeerLogicAsyncClient::on_connect_async (error_code const& ec)
if (socket ().needs_handshake ())
{
socket ().async_handshake (abstract_socket::client,
- boost::bind (&TestPeerLogicAsyncClient::on_handshake, this,
- boost::asio::placeholders::error));
+ std::bind (&TestPeerLogicAsyncClient::on_handshake, this,
+ beast::asio::placeholders::error));
}
else
{
@@ -58,8 +60,9 @@ void TestPeerLogicAsyncClient::on_handshake (error_code const& ec)
return finished ();
boost::asio::async_write (socket (), boost::asio::buffer ("hello", 5),
- boost::bind (&TestPeerLogicAsyncClient::on_write, this,
- boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
+ std::bind (&TestPeerLogicAsyncClient::on_write, this,
+ beast::asio::placeholders::error,
+ beast::asio::placeholders::bytes_transferred));
}
void TestPeerLogicAsyncClient::on_write (error_code const& ec, std::size_t bytes_transferred)
@@ -71,8 +74,8 @@ void TestPeerLogicAsyncClient::on_write (error_code const& ec, std::size_t bytes
return finished ();
boost::asio::async_read_until (socket (), m_buf, std::string ("goodbye"),
- boost::bind (&TestPeerLogicAsyncClient::on_read, this,
- boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
+ std::bind (&TestPeerLogicAsyncClient::on_read, this,
+ beast::asio::placeholders::error, beast::asio::placeholders::bytes_transferred));
}
void TestPeerLogicAsyncClient::on_read (error_code const& ec, std::size_t bytes_transferred)
@@ -89,8 +92,8 @@ void TestPeerLogicAsyncClient::on_read (error_code const& ec, std::size_t bytes_
// Fire up a 1 byte read, to wait for the server to
// shut down its end of the connection.
boost::asio::async_read (socket (), m_buf.prepare (1),
- boost::bind (&TestPeerLogicAsyncClient::on_read_final, this,
- boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
+ std::bind (&TestPeerLogicAsyncClient::on_read_final, this,
+ beast::asio::placeholders::error, beast::asio::placeholders::bytes_transferred));
}
void TestPeerLogicAsyncClient::on_read_final (error_code const& ec, std::size_t)
@@ -104,8 +107,8 @@ void TestPeerLogicAsyncClient::on_read_final (error_code const& ec, std::size_t)
{
if (socket ().needs_handshake ())
{
- socket ().async_shutdown (boost::bind (&TestPeerLogicAsyncClient::on_shutdown, this,
- boost::asio::placeholders::error));
+ socket ().async_shutdown (std::bind (&TestPeerLogicAsyncClient::on_shutdown, this,
+ beast::asio::placeholders::error));
}
else
{
diff --git a/src/beast/beast/module/asio/tests/TestPeerLogicAsyncServer.cpp b/src/beast/beast/module/asio/tests/TestPeerLogicAsyncServer.cpp
index 76b756757..da3d51fe0 100644
--- a/src/beast/beast/module/asio/tests/TestPeerLogicAsyncServer.cpp
+++ b/src/beast/beast/module/asio/tests/TestPeerLogicAsyncServer.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace beast {
namespace asio {
@@ -43,8 +45,8 @@ void TestPeerLogicAsyncServer::on_connect_async (error_code const& ec)
if (socket ().needs_handshake ())
{
socket ().async_handshake (abstract_socket::server,
- boost::bind (&TestPeerLogicAsyncServer::on_handshake, this,
- boost::asio::placeholders::error));
+ std::bind (&TestPeerLogicAsyncServer::on_handshake, this,
+ beast::asio::placeholders::error));
}
else
{
@@ -58,8 +60,8 @@ void TestPeerLogicAsyncServer::on_handshake (error_code const& ec)
return finished ();
boost::asio::async_read_until (socket (), m_buf, std::string ("hello"),
- boost::bind (&TestPeerLogicAsyncServer::on_read, this,
- boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
+ std::bind (&TestPeerLogicAsyncServer::on_read, this,
+ beast::asio::placeholders::error, beast::asio::placeholders::bytes_transferred));
}
void TestPeerLogicAsyncServer::on_read (error_code const& ec, std::size_t bytes_transferred)
@@ -71,8 +73,8 @@ void TestPeerLogicAsyncServer::on_read (error_code const& ec, std::size_t bytes_
return finished ();
boost::asio::async_write (socket (), boost::asio::buffer ("goodbye", 7),
- boost::bind (&TestPeerLogicAsyncServer::on_write, this,
- boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred));
+ std::bind (&TestPeerLogicAsyncServer::on_write, this,
+ beast::asio::placeholders::error, beast::asio::placeholders::bytes_transferred));
}
void TestPeerLogicAsyncServer::on_write (error_code const& ec, std::size_t bytes_transferred)
@@ -85,8 +87,8 @@ void TestPeerLogicAsyncServer::on_write (error_code const& ec, std::size_t bytes
if (socket ().needs_handshake ())
{
- socket ().async_shutdown (boost::bind (&TestPeerLogicAsyncServer::on_shutdown, this,
- boost::asio::placeholders::error));
+ socket ().async_shutdown (std::bind (&TestPeerLogicAsyncServer::on_shutdown, this,
+ beast::asio::placeholders::error));
}
else
{
diff --git a/src/beast/beast/module/asio/tests/TestPeerType.h b/src/beast/beast/module/asio/tests/TestPeerType.h
index 6dc0d6b76..47b1d323a 100644
--- a/src/beast/beast/module/asio/tests/TestPeerType.h
+++ b/src/beast/beast/module/asio/tests/TestPeerType.h
@@ -20,6 +20,8 @@
#ifndef BEAST_ASIO_TESTS_TESTPEERTYPE_H_INCLUDED
#define BEAST_ASIO_TESTS_TESTPEERTYPE_H_INCLUDED
+#include
+
namespace beast {
namespace asio {
@@ -98,8 +100,8 @@ public:
m_timer.expires_from_now (
boost::posix_time::seconds (timeoutSeconds));
- m_timer.async_wait (boost::bind (&This::on_deadline,
- this, boost::asio::placeholders::error));
+ m_timer.async_wait (std::bind (&This::on_deadline,
+ this, beast::asio::placeholders::error));
m_timer_set = true;
}
@@ -270,8 +272,8 @@ public:
if (failure (error ()))
return finished ();
- get_acceptor ().async_accept (get_socket (), boost::bind (
- &This::on_accept, this, boost::asio::placeholders::error));
+ get_acceptor ().async_accept (get_socket (), std::bind (
+ &This::on_accept, this, beast::asio::placeholders::error));
}
//--------------------------------------------------------------------------
@@ -289,7 +291,8 @@ public:
void run_async_client ()
{
get_native_socket ().async_connect (get_endpoint (get_role ()),
- boost::bind (&Logic::on_connect_async, this, boost::asio::placeholders::error));
+ std::bind (&Logic::on_connect_async, this,
+ beast::asio::placeholders::error));
}
//--------------------------------------------------------------------------
diff --git a/src/beast/beast/module/core/core.h b/src/beast/beast/module/core/core.h
index c4e9b54f4..f72055011 100644
--- a/src/beast/beast/module/core/core.h
+++ b/src/beast/beast/module/core/core.h
@@ -28,10 +28,6 @@
#include
#include
-#include
-#include
-#include
-
#if BEAST_MSVC
# pragma warning (disable: 4251) // (DLL build warning, must be disabled before pushing the warning state)
# pragma warning (push)
@@ -78,8 +74,6 @@ class FileOutputStream;
// Order matters, since headers don't have their own #include lines.
// Add new includes to the bottom.
-#include
-
#include
#include
#include
diff --git a/src/beast/beast/module/core/core.unity.cpp b/src/beast/beast/module/core/core.unity.cpp
index 23b32392a..aa6a0756b 100644
--- a/src/beast/beast/module/core/core.unity.cpp
+++ b/src/beast/beast/module/core/core.unity.cpp
@@ -232,6 +232,3 @@ void beast_reportFatalError (char const* message, char const* fileName, int line
#pragma pop_macro("_aligned_offset_recalloc")
#pragma pop_macro("_aligned_msize")
#endif
-
-// Must be outside the namespace
-#include
diff --git a/src/beast/beast/module/core/diagnostic/SemanticVersion.h b/src/beast/beast/module/core/diagnostic/SemanticVersion.h
index 2e58a3fa6..fba61f1a4 100644
--- a/src/beast/beast/module/core/diagnostic/SemanticVersion.h
+++ b/src/beast/beast/module/core/diagnostic/SemanticVersion.h
@@ -20,8 +20,11 @@
#ifndef BEAST_SEMANTICVERSION_H_INCLUDED
#define BEAST_SEMANTICVERSION_H_INCLUDED
-namespace beast
-{
+#include
+#include
+#include
+
+namespace beast {
/** A Semantic Version number.
diff --git a/src/beast/beast/module/core/logging/Logger.h b/src/beast/beast/module/core/logging/Logger.h
index d41d45862..73aab2694 100644
--- a/src/beast/beast/module/core/logging/Logger.h
+++ b/src/beast/beast/module/core/logging/Logger.h
@@ -24,6 +24,8 @@
#ifndef BEAST_LOGGER_H_INCLUDED
#define BEAST_LOGGER_H_INCLUDED
+#include
+
namespace beast
{
diff --git a/src/beast/beast/module/core/system/BeforeBoost.h b/src/beast/beast/module/core/system/BeforeBoost.h
deleted file mode 100644
index 287d0d850..000000000
--- a/src/beast/beast/module/core/system/BeforeBoost.h
+++ /dev/null
@@ -1,32 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of Beast: https://github.com/vinniefalco/Beast
- Copyright 2013, Vinnie Falco
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef BEAST_CORE_SYSTEM_BEFOREBOOST_H_INCLUDED
-#define BEAST_CORE_SYSTEM_BEFOREBOOST_H_INCLUDED
-
-// TargetPlatform.h should not use anything from BeastConfig.h
-#include
-
-// This file should be included before including any boost headers.
-// If you don't include this file, and you include boost headers,
-// Beast will generate a compile error with an explanation of why.
-
-#include
-
-#endif
diff --git a/src/beast/beast/module/core/system/BoostIncludes.h b/src/beast/beast/module/core/system/BoostIncludes.h
deleted file mode 100644
index dc4416feb..000000000
--- a/src/beast/beast/module/core/system/BoostIncludes.h
+++ /dev/null
@@ -1,32 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of Beast: https://github.com/vinniefalco/Beast
- Copyright 2013, Vinnie Falco
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef BEAST_CORE_BOOSTINCLUDES_H_INCLUDED
-#define BEAST_CORE_BOOSTINCLUDES_H_INCLUDED
-
-#if BEAST_USE_BOOST_FEATURES
-
-#include
-#include
-#include // for FifoFreeStoreWithTLS
-#include
-
-#endif
-
-#endif
diff --git a/src/beast/beast/module/core/system/BoostPlaceholdersFix.cpp b/src/beast/beast/module/core/system/BoostPlaceholdersFix.cpp
deleted file mode 100644
index fc814c9ff..000000000
--- a/src/beast/beast/module/core/system/BoostPlaceholdersFix.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of Beast: https://github.com/vinniefalco/Beast
- Copyright 2013, Vinnie Falco
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#if BEAST_USE_BOOST_FEATURES
-
-namespace boost
-{
-
-namespace placeholders
-{
-
-boost::arg<1> _1;
-boost::arg<2> _2;
-boost::arg<3> _3;
-boost::arg<4> _4;
-boost::arg<5> _5;
-boost::arg<6> _6;
-boost::arg<7> _7;
-boost::arg<8> _8;
-boost::arg<9> _9;
-
-}
-
-}
-
-#endif
diff --git a/src/beast/beast/module/core/system/BoostPlaceholdersFix.h b/src/beast/beast/module/core/system/BoostPlaceholdersFix.h
deleted file mode 100644
index 2711c382b..000000000
--- a/src/beast/beast/module/core/system/BoostPlaceholdersFix.h
+++ /dev/null
@@ -1,64 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of Beast: https://github.com/vinniefalco/Beast
- Copyright 2013, Vinnie Falco
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef BEAST_CORE_SYSTEM_BOOSTPLACEHOLDERSFIX_H_INCLUDED
-#define BEAST_CORE_SYSTEM_BOOSTPLACEHOLDERSFIX_H_INCLUDED
-
-#if BEAST_USE_BOOST_FEATURES
-
-// Prevent from being included
-#ifdef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
-# error "boost/bind.hpp must not be included before this file"
-#else
-# define BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
-#endif
-
-#include
-#include
-
-// This is a hack to fix boost's goofy placeholders going into the global
-// namespace. First we prevent the user from including boost/bind.hpp
-// before us. Then we define the include guard macro and include
-// boost/bind.hpp ourselves to get the declarations. Finally we repeat
-// the missing placeholder declarations but put them in a proper namespace.
-//
-// We put the placeholders in boost::placeholders so they can be accessed
-// explicitly to handle the common case of a "using namespace oost" directive
-// being in effect.
-//
-// Declarations based on boost/bind/placeholders.cpp
-//
-namespace boost {
-namespace placeholders {
-extern boost::arg<1> _1;
-extern boost::arg<2> _2;
-extern boost::arg<3> _3;
-extern boost::arg<4> _4;
-extern boost::arg<5> _5;
-extern boost::arg<6> _6;
-extern boost::arg<7> _7;
-extern boost::arg<8> _8;
-extern boost::arg<9> _9;
-}
-using namespace placeholders;
-}
-
-#endif
-
-#endif
diff --git a/src/beast/beast/module/core/system/Functional.h b/src/beast/beast/module/core/system/Functional.h
deleted file mode 100644
index faac1e13a..000000000
--- a/src/beast/beast/module/core/system/Functional.h
+++ /dev/null
@@ -1,381 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of Beast: https://github.com/vinniefalco/Beast
- Copyright 2013, Vinnie Falco
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef BEAST_FUNCTIONAL_H_INCLUDED
-#define BEAST_FUNCTIONAL_H_INCLUDED
-
-namespace beast
-{
-
-//------------------------------------------------------------------------------
-
-/* Brings functional support into our namespace, based on environment.
-
- Notes on bind
-
- Difference between boost::bind and std::bind
- http://stackoverflow.com/questions/10555566/is-there-any-difference-between-c11-stdbind-and-boostbind
-
- Resolving conflict between boost::shared_ptr and std::shared_ptr
- http://stackoverflow.com/questions/4682343/how-to-resolve-conflict-between-boostshared-ptr-and-using-stdshared-ptr
-*/
-
-#ifndef BEAST_BIND_PLACEHOLDERS_N
-# if BEAST_MSVC && BEAST_FUNCTIONAL_USES_STD
-# define BEAST_BIND_PLACEHOLDERS_N 20 // Visual Studio 2012
-# else
-# define BEAST_BIND_PLACEHOLDERS_N 8 // Seems a reasonable number
-# endif
-#endif
-
-/** Max number of arguments to bind, total.
-*/
-#if BEAST_MSVC
-# ifdef _VARIADIC_MAX
-# define BEAST_VARIADIC_MAX _VARIADIC_MAX
-# else
-# define BEAST_VARIADIC_MAX 10
-# endif
-#else
-# define BEAST_VARIADIC_MAX 10
-#endif
-
-//------------------------------------------------------------------------------
-
-#if BEAST_FUNCTIONAL_USES_STD
-
-namespace functional
-{
-
-using std::ref;
-using std::cref;
-using std::bind;
-
-//using std::function;
-
-}
-
-using namespace functional;
-
-namespace placeholders
-{
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 1
-using std::placeholders::_1;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 2
-using std::placeholders::_2;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 3
-using std::placeholders::_3;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 4
-using std::placeholders::_4;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 5
-using std::placeholders::_5;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 6
-using std::placeholders::_6;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 7
-using std::placeholders::_7;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 8
-using std::placeholders::_8;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 9
-using std::placeholders::_9;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 10
-using std::placeholders::_10;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 11
-using std::placeholders::_11;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 12
-using std::placeholders::_12;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 13
-using std::placeholders::_13;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 14
-using std::placeholders::_14;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 15
-using std::placeholders::_15;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 16
-using std::placeholders::_16;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 17
-using std::placeholders::_17;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 18
-using std::placeholders::_18;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 19
-using std::placeholders::_19;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 20
-using std::placeholders::_20;
-#endif
-
-}
-
-using namespace placeholders;
-
-//------------------------------------------------------------------------------
-
-#elif BEAST_FUNCTIONAL_USES_TR1
-
-namespace functional
-{
-
-using std::tr1::ref;
-using std::tr1::cref;
-using std::tr1::bind;
-
-//using std::tr1::function;
-
-}
-
-using namespace functional;
-
-namespace placeholders
-{
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 1
-using std::tr1::placeholders::_1;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 2
-using std::tr1::placeholders::_2;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 3
-using std::tr1::placeholders::_3;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 4
-using std::tr1::placeholders::_4;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 5
-using std::tr1::placeholders::_5;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 6
-using std::tr1::placeholders::_6;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 7
-using std::tr1::placeholders::_7;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 8
-using std::tr1::placeholders::_8;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 9
-using std::tr1::placeholders::_9;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 10
-using std::tr1::placeholders::_10;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 11
-using std::tr1::placeholders::_11;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 12
-using std::tr1::placeholders::_12;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 13
-using std::tr1::placeholders::_13;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 14
-using std::tr1::placeholders::_14;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 15
-using std::tr1::placeholders::_15;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 16
-using std::tr1::placeholders::_16;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 17
-using std::tr1::placeholders::_17;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 18
-using std::tr1::placeholders::_18;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 19
-using std::tr1::placeholders::_19;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 20
-using std::tr1::placeholders::_20;
-#endif
-
-}
-
-using namespace placeholders;
-
-//------------------------------------------------------------------------------
-
-#elif BEAST_FUNCTIONAL_USES_BOOST
-
-namespace functional
-{
-
-using boost::ref;
-using boost::cref;
-using boost::bind;
-
-//using boost::function;
-
-}
-
-using namespace functional;
-
-namespace placeholders
-{
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 1
-using boost::placeholders::_1;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 2
-using boost::placeholders::_2;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 3
-using boost::placeholders::_3;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 4
-using boost::placeholders::_4;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 5
-using boost::placeholders::_5;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 6
-using boost::placeholders::_6;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 7
-using boost::placeholders::_7;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 8
-using boost::placeholders::_8;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 9
-using boost::placeholders::_9;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 10
-using boost::placeholders::_10;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 11
-using boost::placeholders::_11;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 12
-using boost::placeholders::_12;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 13
-using boost::placeholders::_13;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 14
-using boost::placeholders::_14;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 15
-using boost::placeholders::_15;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 16
-using boost::placeholders::_16;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 17
-using boost::placeholders::_17;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 18
-using boost::placeholders::_18;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 19
-using boost::placeholders::_19;
-#endif
-
-#if BEAST_BIND_PLACEHOLDERS_N >= 20
-using boost::placeholders::_20;
-#endif
-
-}
-
-using namespace placeholders;
-
-//------------------------------------------------------------------------------
-
-#else
-
-#error Unknown bind source in Functional.h
-
-#endif
-
-} // beast
-
-#endif
diff --git a/src/beast/beast/module/core/system/FunctionalIncludes.h b/src/beast/beast/module/core/system/FunctionalIncludes.h
deleted file mode 100644
index bc042832e..000000000
--- a/src/beast/beast/module/core/system/FunctionalIncludes.h
+++ /dev/null
@@ -1,54 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of Beast: https://github.com/vinniefalco/Beast
- Copyright 2013, Vinnie Falco
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef BEAST_CORE_SYSTEM_FUNCTIONALINCLUDES_H_INCLUDED
-#define BEAST_CORE_SYSTEM_FUNCTIONALINCLUDES_H_INCLUDED
-
-// Choose a source of bind, placeholders, and function
-
-#if !BEAST_FUNCTIONAL_USES_STD && !BEAST_FUNCTIONAL_USES_TR1 && !BEAST_FUNCTIONAL_USES_BOOST
-# if BEAST_USE_BOOST_FEATURES
-# define BEAST_FUNCTIONAL_USES_BOOST 1
-# elif BEAST_MSVC
-# define BEAST_FUNCTIONAL_USES_STD 1
-# elif BEAST_IOS || BEAST_MAC
-#include // detect version of std::lib
-# if BEAST_IOS && BEAST_USE_BOOST_FEATURES // Work-around for iOS bugs with bind.
-# define BEAST_FUNCTIONAL_USES_BOOST 1
-# elif _LIBCPP_VERSION // libc++
-# define BEAST_FUNCTIONAL_USES_STD 1
-# else // libstdc++ (GNU)
-# define BEAST_FUNCTIONAL_USES_TR1 1
-# endif
-# elif BEAST_LINUX || BEAST_BSD
-# define BEAST_FUNCTIONAL_USES_TR1 1
-# else
-# define BEAST_FUNCTIONAL_USES_STD 1
-# endif
-#endif
-
-#if BEAST_FUNCTIONAL_USES_STD
-#include
-#elif BEAST_FUNCTIONAL_USES_TR1
-#include
-#elif BEAST_FUNCTIONAL_USES_BOOST
-// included in BoostPlaceholdersFix.h
-#endif
-
-#endif
diff --git a/src/beast/beast/module/core/text/StringArray.h b/src/beast/beast/module/core/text/StringArray.h
index 5cbfe4f40..aa61c60cb 100644
--- a/src/beast/beast/module/core/text/StringArray.h
+++ b/src/beast/beast/module/core/text/StringArray.h
@@ -24,6 +24,7 @@
#ifndef BEAST_STRINGARRAY_H_INCLUDED
#define BEAST_STRINGARRAY_H_INCLUDED
+#include
#include
#include
diff --git a/src/beast/beast/module/core/threads/CriticalSection.h b/src/beast/beast/module/core/threads/CriticalSection.h
index f66fec739..5130c568f 100644
--- a/src/beast/beast/module/core/threads/CriticalSection.h
+++ b/src/beast/beast/module/core/threads/CriticalSection.h
@@ -25,6 +25,7 @@
#define BEAST_CRITICALSECTION_H_INCLUDED
#include
+#include
namespace beast {
diff --git a/src/beast/beast/smart_ptr/ScopedPointer.h b/src/beast/beast/smart_ptr/ScopedPointer.h
index aa3bd0eda..52eb1c70d 100644
--- a/src/beast/beast/smart_ptr/ScopedPointer.h
+++ b/src/beast/beast/smart_ptr/ScopedPointer.h
@@ -27,9 +27,9 @@
#include
#include
#include
-
#include
-
+#include
+
namespace beast {
//==============================================================================
diff --git a/src/beast/beast/unit_test/reporter.h b/src/beast/beast/unit_test/reporter.h
index c206ac47e..0503f11a1 100644
--- a/src/beast/beast/unit_test/reporter.h
+++ b/src/beast/beast/unit_test/reporter.h
@@ -22,13 +22,9 @@
#include
#include
-
#include
#include
-
#include
-#include
-
#include
#include
@@ -116,7 +112,7 @@ public:
reporter& operator= (reporter const&) = delete;
explicit reporter (std::ostream& stream = std::cout)
- : m_std_ostream (boost::ref (stream))
+ : m_std_ostream (std::ref (stream))
, m_stream (*m_std_ostream)
{
}
diff --git a/src/ripple/common/KeyCache.h b/src/ripple/common/KeyCache.h
index feea9bbf3..32922a799 100644
--- a/src/ripple/common/KeyCache.h
+++ b/src/ripple/common/KeyCache.h
@@ -23,8 +23,6 @@
#include
#include
-#include
-
#include
#include
#include
diff --git a/src/ripple/common/TaggedCache.h b/src/ripple/common/TaggedCache.h
index 6f08d55a3..752ca3ebb 100644
--- a/src/ripple/common/TaggedCache.h
+++ b/src/ripple/common/TaggedCache.h
@@ -25,7 +25,6 @@
#include
#include
#include
-#include
#include
#include
#include
diff --git a/src/ripple/common/impl/MultiSocketImpl.h b/src/ripple/common/impl/MultiSocketImpl.h
index 6ffaaef49..448b4876b 100644
--- a/src/ripple/common/impl/MultiSocketImpl.h
+++ b/src/ripple/common/impl/MultiSocketImpl.h
@@ -21,13 +21,11 @@
#define RIPPLE_COMMON_MULTISOCKETIMPL_H_INCLUDED
#include
-
#include
#include
#include
-
#include
-
+#include
#include
#ifndef RIPPLE_MULTISOCKET_NO_ALLOCATOR
diff --git a/src/ripple/common/impl/ResolverAsio.cpp b/src/ripple/common/impl/ResolverAsio.cpp
index ffae95db1..0b947ab02 100644
--- a/src/ripple/common/impl/ResolverAsio.cpp
+++ b/src/ripple/common/impl/ResolverAsio.cpp
@@ -17,19 +17,16 @@
*/
//==============================================================================
-#include
+#include
#include
-
+#include
+#include
+#include
#include
+#include
#include
#include
-#include "boost/asio.hpp"
-
-#include
-
-#include
-
namespace ripple {
class ResolverAsioImpl
@@ -117,7 +114,7 @@ public:
{
if (m_stop_called.exchange (true) == false)
{
- m_io_service.dispatch (m_strand.wrap (boost::bind (
+ m_io_service.dispatch (m_strand.wrap (std::bind (
&ResolverAsioImpl::do_stop,
this, CompletionCounter (this))));
@@ -144,7 +141,7 @@ public:
// TODO NIKB use rvalue references to construct and move
// reducing cost.
- m_io_service.dispatch (m_strand.wrap (boost::bind (
+ m_io_service.dispatch (m_strand.wrap (std::bind (
&ResolverAsioImpl::do_resolve, this,
names, handler, CompletionCounter (this))));
}
@@ -189,7 +186,7 @@ public:
handler (name, addresses);
- m_io_service.post (m_strand.wrap (boost::bind (
+ m_io_service.post (m_strand.wrap (std::bind (
&ResolverAsioImpl::do_work, this,
CompletionCounter (this))));
}
@@ -259,7 +256,7 @@ public:
m_journal.error <<
"Unable to parse '" << name << "'";
- m_io_service.post (m_strand.wrap (boost::bind (
+ m_io_service.post (m_strand.wrap (std::bind (
&ResolverAsioImpl::do_work, this,
CompletionCounter (this))));
@@ -269,10 +266,10 @@ public:
boost::asio::ip::tcp::resolver::query query (
hp.first, hp.second);
- m_resolver.async_resolve (query, boost::bind (
+ m_resolver.async_resolve (query, std::bind (
&ResolverAsioImpl::do_finish, this, name,
- boost::asio::placeholders::error, handler,
- boost::asio::placeholders::iterator,
+ beast::asio::placeholders::error, handler,
+ beast::asio::placeholders::iterator,
CompletionCounter (this)));
}
@@ -291,7 +288,7 @@ public:
if (m_work.size() == 1)
{
- m_io_service.post (m_strand.wrap (boost::bind (
+ m_io_service.post (m_strand.wrap (std::bind (
&ResolverAsioImpl::do_work, this,
CompletionCounter (this))));
}
diff --git a/src/ripple/http/impl/Door.h b/src/ripple/http/impl/Door.h
index caf30bd40..d5267b126 100644
--- a/src/ripple/http/impl/Door.h
+++ b/src/ripple/http/impl/Door.h
@@ -20,6 +20,8 @@
#ifndef RIPPLE_HTTP_DOOR_H_INCLUDED
#define RIPPLE_HTTP_DOOR_H_INCLUDED
+#include
+
namespace ripple {
namespace HTTP {
@@ -94,9 +96,9 @@ public:
void async_accept ()
{
Peer* peer (new Peer (m_impl, m_port));
- m_acceptor.async_accept (peer->get_socket(), boost::bind (
+ m_acceptor.async_accept (peer->get_socket(), std::bind (
&Door::handle_accept, Ptr(this),
- boost::asio::placeholders::error,
+ beast::asio::placeholders::error,
Peer::Ptr (peer), CompletionCounter (this)));
}
diff --git a/src/ripple/http/impl/Peer.h b/src/ripple/http/impl/Peer.h
index 4e345da8e..2c56564c2 100644
--- a/src/ripple/http/impl/Peer.h
+++ b/src/ripple/http/impl/Peer.h
@@ -22,11 +22,10 @@
#include
#include
-
#include
#include
#include
-
+#include
#include
namespace ripple {
@@ -186,7 +185,7 @@ public:
// The work object will be destroyed with the Peer
// after the Session is closed and handlers complete.
//
- m_work = boost::in_place (boost::ref (
+ m_work = boost::in_place (std::ref (
m_impl.get_io_service()));
}
}
diff --git a/src/ripple/http/impl/ServerImpl.cpp b/src/ripple/http/impl/ServerImpl.cpp
index a8a4d3ae5..21cbc3bee 100644
--- a/src/ripple/http/impl/ServerImpl.cpp
+++ b/src/ripple/http/impl/ServerImpl.cpp
@@ -26,7 +26,7 @@ ServerImpl::ServerImpl (Server& server, Handler& handler, beast::Journal journal
, m_handler (handler)
, m_journal (journal)
, m_strand (m_io_service)
- , m_work (boost::in_place (boost::ref (m_io_service)))
+ , m_work (boost::in_place (std::ref (m_io_service)))
, m_stopped (true)
{
startThread ();
@@ -213,7 +213,7 @@ void ServerImpl::handle_update ()
//
void ServerImpl::update ()
{
- m_io_service.post (m_strand.wrap (boost::bind (
+ m_io_service.post (m_strand.wrap (std::bind (
&ServerImpl::handle_update, this)));
}
diff --git a/src/ripple/module/app/consensus/LedgerConsensus.cpp b/src/ripple/module/app/consensus/LedgerConsensus.cpp
index 58289a7dd..6dd863405 100644
--- a/src/ripple/module/app/consensus/LedgerConsensus.cpp
+++ b/src/ripple/module/app/consensus/LedgerConsensus.cpp
@@ -875,7 +875,7 @@ private:
Ledger::pointer newLCL
= std::make_shared (false
- , boost::ref (*mPreviousLedger));
+ , std::ref (*mPreviousLedger));
// Set up to write SHAMap changes to our database,
// perform updates, extract changes
@@ -968,7 +968,7 @@ private:
getApp().getLedgerMaster().consensusBuilt (newLCL);
Ledger::pointer newOL = std::make_shared
- (true, boost::ref (*newLCL));
+ (true, std::ref (*newLCL));
LedgerMaster::ScopedLockType sl
(getApp().getLedgerMaster ().peekMutex ());
@@ -987,7 +987,7 @@ private:
SerializerIterator sit (it.second->peekTransaction ());
SerializedTransaction::pointer txn
= std::make_shared
- (boost::ref (sit));
+ (std::ref (sit));
if (applyTransaction (engine, txn, newOL, true, false))
{
@@ -1269,7 +1269,7 @@ private:
SerializerIterator sit (item->peekSerializer ());
SerializedTransaction::pointer txn
= std::make_shared
- (boost::ref (sit));
+ (std::ref (sit));
if (applyTransaction (engine, txn,
applyLedger, openLgr, true) == resultRetry)
diff --git a/src/ripple/module/app/ledger/AcceptedLedger.cpp b/src/ripple/module/app/ledger/AcceptedLedger.cpp
index 65d0cf0a7..82792b2d7 100644
--- a/src/ripple/module/app/ledger/AcceptedLedger.cpp
+++ b/src/ripple/module/app/ledger/AcceptedLedger.cpp
@@ -33,7 +33,7 @@ AcceptedLedger::AcceptedLedger (Ledger::ref ledger) : mLedger (ledger)
for (SHAMapItem::pointer item = txSet.peekFirstItem (); !!item; item = txSet.peekNextItem (item->getTag ()))
{
SerializerIterator sit (item->peekSerializer ());
- insert (std::make_shared (ledger->getLedgerSeq (), boost::ref (sit)));
+ insert (std::make_shared (ledger->getLedgerSeq (), std::ref (sit)));
}
}
diff --git a/src/ripple/module/app/ledger/AcceptedLedgerTx.cpp b/src/ripple/module/app/ledger/AcceptedLedgerTx.cpp
index 2118612c0..7f91dcfa4 100644
--- a/src/ripple/module/app/ledger/AcceptedLedgerTx.cpp
+++ b/src/ripple/module/app/ledger/AcceptedLedgerTx.cpp
@@ -24,7 +24,7 @@ AcceptedLedgerTx::AcceptedLedgerTx (std::uint32_t seq, SerializerIterator& sit)
Serializer txnSer (sit.getVL ());
SerializerIterator txnIt (txnSer);
- mTxn = std::make_shared (boost::ref (txnIt));
+ mTxn = std::make_shared (std::ref (txnIt));
mRawMeta = sit.getVL ();
mMeta = std::make_shared (mTxn->getTransactionID (), seq, mRawMeta);
mAffected = mMeta->getAffectedAccounts ();
diff --git a/src/ripple/module/app/ledger/Ledger.cpp b/src/ripple/module/app/ledger/Ledger.cpp
index 948f68f6d..77d3939c2 100644
--- a/src/ripple/module/app/ledger/Ledger.cpp
+++ b/src/ripple/module/app/ledger/Ledger.cpp
@@ -469,12 +469,12 @@ SerializedTransaction::pointer Ledger::getSTransaction (SHAMapItem::ref item, SH
SerializerIterator sit (item->peekSerializer ());
if (type == SHAMapTreeNode::tnTRANSACTION_NM)
- return std::make_shared (boost::ref (sit));
+ return std::make_shared (std::ref (sit));
else if (type == SHAMapTreeNode::tnTRANSACTION_MD)
{
Serializer sTxn (sit.getVL ());
SerializerIterator tSit (sTxn);
- return std::make_shared (boost::ref (tSit));
+ return std::make_shared (std::ref (tSit));
}
return SerializedTransaction::pointer ();
@@ -488,7 +488,7 @@ SerializedTransaction::pointer Ledger::getSMTransaction (SHAMapItem::ref item, S
if (type == SHAMapTreeNode::tnTRANSACTION_NM)
{
txMeta.reset ();
- return std::make_shared (boost::ref (sit));
+ return std::make_shared (std::ref (sit));
}
else if (type == SHAMapTreeNode::tnTRANSACTION_MD)
{
@@ -496,7 +496,7 @@ SerializedTransaction::pointer Ledger::getSMTransaction (SHAMapItem::ref item, S
SerializerIterator tSit (sTxn);
txMeta = std::make_shared (item->getTag (), mLedgerSeq, sit.getVL ());
- return std::make_shared (boost::ref (tSit));
+ return std::make_shared (std::ref (tSit));
}
txMeta.reset ();
diff --git a/src/ripple/module/app/ledger/OrderBookDB.cpp b/src/ripple/module/app/ledger/OrderBookDB.cpp
index 1b8f77d31..9b1a30ac2 100644
--- a/src/ripple/module/app/ledger/OrderBookDB.cpp
+++ b/src/ripple/module/app/ledger/OrderBookDB.cpp
@@ -82,8 +82,8 @@ static void updateHelper (SLE::ref entry,
if (seen.insert (index).second)
{
// VFALCO TODO Reduce the clunkiness of these parameter wrappers
- OrderBook::pointer book = std::make_shared (boost::cref (index),
- boost::cref (ci), boost::cref (co), boost::cref (ii), boost::cref (io));
+ OrderBook::pointer book = std::make_shared (std::cref (index),
+ std::cref (ci), std::cref (co), std::cref (ii), std::cref (io));
sourceMap[RippleAssetRef (ci, ii)].push_back (book);
destMap[RippleAssetRef (co, io)].push_back (book);
@@ -109,8 +109,8 @@ void OrderBookDB::update (Ledger::pointer ledger)
try
{
ledger->visitStateItems(std::bind(&updateHelper, std::placeholders::_1,
- boost::ref(seen), boost::ref(destMap),
- boost::ref(sourceMap), boost::ref(XRPBooks), boost::ref(books)));
+ std::ref(seen), std::ref(destMap),
+ std::ref(sourceMap), std::ref(XRPBooks), std::ref(books)));
}
catch (const SHAMapMissingNode&)
{
@@ -155,8 +155,8 @@ void OrderBookDB::addOrderBook(const uint160& ci, const uint160& co,
}
uint256 index = Ledger::getBookBase(ci, ii, co, io);
- OrderBook::pointer book = std::make_shared (boost::cref (index),
- boost::cref (ci), boost::cref (co), boost::cref (ii), boost::cref (io));
+ OrderBook::pointer book = std::make_shared (std::cref (index),
+ std::cref (ci), std::cref (co), std::cref (ii), std::cref (io));
mSourceMap[RippleAssetRef (ci, ii)].push_back (book);
mDestMap[RippleAssetRef (co, io)].push_back (book);
diff --git a/src/ripple/module/app/main/Application.cpp b/src/ripple/module/app/main/Application.cpp
index 61b858633..1c3742c3e 100644
--- a/src/ripple/module/app/main/Application.cpp
+++ b/src/ripple/module/app/main/Application.cpp
@@ -17,19 +17,19 @@
*/
//==============================================================================
+#include
#include
-
-#include
-#include
+#include
#include
-#include
+#include
#include
#include
#include
#include
-
+#include
#include
-
+#include
+
namespace ripple {
// VFALCO TODO Clean this global up
@@ -1070,25 +1070,25 @@ public:
m_fullBelowCache->sweep ();
- logTimedCall (m_journal.warning, "TransactionMaster::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "TransactionMaster::sweep", __FILE__, __LINE__, std::bind (
&TransactionMaster::sweep, &m_txMaster));
- logTimedCall (m_journal.warning, "NodeStore::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "NodeStore::sweep", __FILE__, __LINE__, std::bind (
&NodeStore::Database::sweep, m_nodeStore.get ()));
- logTimedCall (m_journal.warning, "LedgerMaster::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "LedgerMaster::sweep", __FILE__, __LINE__, std::bind (
&LedgerMaster::sweep, m_ledgerMaster.get()));
- logTimedCall (m_journal.warning, "TempNodeCache::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "TempNodeCache::sweep", __FILE__, __LINE__, std::bind (
&NodeCache::sweep, &m_tempNodeCache));
- logTimedCall (m_journal.warning, "Validations::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "Validations::sweep", __FILE__, __LINE__, std::bind (
&Validations::sweep, mValidations.get ()));
- logTimedCall (m_journal.warning, "InboundLedgers::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "InboundLedgers::sweep", __FILE__, __LINE__, std::bind (
&InboundLedgers::sweep, &getInboundLedgers ()));
- logTimedCall (m_journal.warning, "SLECache::sweep", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "SLECache::sweep", __FILE__, __LINE__, std::bind (
&SLECache::sweep, &m_sleCache));
logTimedCall (m_journal.warning, "AcceptedLedger::sweep", __FILE__, __LINE__,
@@ -1097,7 +1097,7 @@ public:
logTimedCall (m_journal.warning, "SHAMap::sweep", __FILE__, __LINE__,
&SHAMap::sweep);
- logTimedCall (m_journal.warning, "NetworkOPs::sweepFetchPack", __FILE__, __LINE__, boost::bind (
+ logTimedCall (m_journal.warning, "NetworkOPs::sweepFetchPack", __FILE__, __LINE__, std::bind (
&NetworkOPs::sweepFetchPack, m_networkOPs.get ()));
// VFALCO NOTE does the call to sweep() happen on another thread?
@@ -1137,10 +1137,10 @@ void ApplicationImp::startNewLedger ()
firstLedger->setAccepted ();
m_ledgerMaster->pushLedger (firstLedger);
- Ledger::pointer secondLedger = std::make_shared (true, boost::ref (*firstLedger));
+ Ledger::pointer secondLedger = std::make_shared (true, std::ref (*firstLedger));
secondLedger->setClosed ();
secondLedger->setAccepted ();
- m_ledgerMaster->pushLedger (secondLedger, std::make_shared (true, boost::ref (*secondLedger)));
+ m_ledgerMaster->pushLedger (secondLedger, std::make_shared (true, std::ref (*secondLedger)));
assert (!!secondLedger->getAccountState (rootAddress));
m_networkOPs->setLastCloseTime (secondLedger->getCloseTimeNC ());
}
@@ -1300,7 +1300,7 @@ bool ApplicationImp::loadOldLedger (
m_ledgerMaster->setLedgerRangePresent (loadLedger->getLedgerSeq (), loadLedger->getLedgerSeq ());
- Ledger::pointer openLedger = std::make_shared (false, boost::ref (*loadLedger));
+ Ledger::pointer openLedger = std::make_shared (false, std::ref (*loadLedger));
m_ledgerMaster->switchLedgers (loadLedger, openLedger);
m_ledgerMaster->forceValid(loadLedger);
m_networkOPs->setLastCloseTime (loadLedger->getCloseTimeNC ());
diff --git a/src/ripple/module/app/main/CollectorManager.cpp b/src/ripple/module/app/main/CollectorManager.cpp
index 1a8a26582..9975708a4 100644
--- a/src/ripple/module/app/main/CollectorManager.cpp
+++ b/src/ripple/module/app/main/CollectorManager.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace ripple {
class CollectorManagerImp
diff --git a/src/ripple/module/app/main/CollectorManager.h b/src/ripple/module/app/main/CollectorManager.h
index a3c6a9407..e85adca52 100644
--- a/src/ripple/module/app/main/CollectorManager.h
+++ b/src/ripple/module/app/main/CollectorManager.h
@@ -20,6 +20,7 @@
#ifndef RIPPLE_RIPPLECOLLECTOR_H_INCLUDED
#define RIPPLE_RIPPLECOLLECTOR_H_INCLUDED
+#include
#include
namespace ripple {
diff --git a/src/ripple/module/app/main/FatalErrorReporter.cpp b/src/ripple/module/app/main/FatalErrorReporter.cpp
index eb29e29fa..2d5bf2682 100644
--- a/src/ripple/module/app/main/FatalErrorReporter.cpp
+++ b/src/ripple/module/app/main/FatalErrorReporter.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+#include
#include
namespace ripple {
diff --git a/src/ripple/module/app/main/IoServicePool.cpp b/src/ripple/module/app/main/IoServicePool.cpp
index d3a4cfd23..599a8d72f 100644
--- a/src/ripple/module/app/main/IoServicePool.cpp
+++ b/src/ripple/module/app/main/IoServicePool.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+#include
#include //
namespace ripple {
@@ -25,7 +27,7 @@ class IoServicePool::ServiceThread : private beast::Thread
{
public:
explicit ServiceThread (
- beast::String const& name,
+ std::string const& name,
IoServicePool& owner,
boost::asio::io_service& service)
: Thread (name)
@@ -60,12 +62,12 @@ private:
//------------------------------------------------------------------------------
-IoServicePool::IoServicePool (Stoppable& parent, beast::String const& name,
+IoServicePool::IoServicePool (Stoppable& parent, std::string const& name,
int numberOfThreads)
- : Stoppable (name.toStdString().c_str(), parent)
+ : Stoppable (name.c_str(), parent)
, m_name (name)
, m_service (numberOfThreads)
- , m_work (boost::ref (m_service))
+ , m_work (std::ref (m_service))
, m_threadsDesired (numberOfThreads)
{
bassert (m_threadsDesired > 0);
diff --git a/src/ripple/module/app/main/IoServicePool.h b/src/ripple/module/app/main/IoServicePool.h
index 3bcc89044..9848382a0 100644
--- a/src/ripple/module/app/main/IoServicePool.h
+++ b/src/ripple/module/app/main/IoServicePool.h
@@ -20,13 +20,17 @@
#ifndef RIPPLE_APP_IOSERVICEPOOL_H_INCLUDED
#define RIPPLE_APP_IOSERVICEPOOL_H_INCLUDED
+#include
+#include
+#include
+
namespace ripple {
/** An io_service with an associated group of threads. */
class IoServicePool : public beast::Stoppable
{
public:
- IoServicePool (Stoppable& parent, beast::String const& name, int numberOfThreads);
+ IoServicePool (Stoppable& parent, std::string const& name, int numberOfThreads);
~IoServicePool ();
boost::asio::io_service& getService ();
@@ -41,7 +45,7 @@ private:
void onThreadExit();
- beast::String m_name;
+ std::string m_name;
boost::asio::io_service m_service;
boost::optional m_work;
std::vector > m_threads;
diff --git a/src/ripple/module/app/main/LoadManager.cpp b/src/ripple/module/app/main/LoadManager.cpp
index 5f98cee1e..77e93c480 100644
--- a/src/ripple/module/app/main/LoadManager.cpp
+++ b/src/ripple/module/app/main/LoadManager.cpp
@@ -147,17 +147,6 @@ public:
void logDeadlock (int dlTime)
{
m_journal.warning << "Server stalled for " << dlTime << " seconds.";
-
-#if RIPPLE_TRACK_MUTEXES
- StringArray report;
- TrackedMutex::generateGlobalBlockedReport (report);
- if (report.size () > 0)
- {
- report.insert (0, String::empty);
- report.insert (-1, String::empty);
- Log::print (report);
- }
-#endif
}
// VFALCO NOTE Where's the thread object? It's not a data member...
diff --git a/src/ripple/module/app/main/LocalCredentials.h b/src/ripple/module/app/main/LocalCredentials.h
index 2e00d7edc..1691882ea 100644
--- a/src/ripple/module/app/main/LocalCredentials.h
+++ b/src/ripple/module/app/main/LocalCredentials.h
@@ -57,7 +57,7 @@ private:
bool nodeIdentityCreate ();
private:
- boost::recursive_mutex mLock;
+ std::recursive_mutex mLock;
RippleAddress mNodePublicKey;
RippleAddress mNodePrivateKey;
diff --git a/src/ripple/module/app/main/NodeStoreScheduler.cpp b/src/ripple/module/app/main/NodeStoreScheduler.cpp
index 6f8f0b5af..43e2ad197 100644
--- a/src/ripple/module/app/main/NodeStoreScheduler.cpp
+++ b/src/ripple/module/app/main/NodeStoreScheduler.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace ripple {
NodeStoreScheduler::NodeStoreScheduler (Stoppable& parent)
@@ -48,7 +50,7 @@ void NodeStoreScheduler::scheduleTask (NodeStore::Task& task)
jtWRITE,
"NodeObject::store",
std::bind (&NodeStoreScheduler::doTask,
- this, boost::ref(task), std::placeholders::_1));
+ this, std::ref(task), std::placeholders::_1));
}
void NodeStoreScheduler::doTask (NodeStore::Task& task, Job&)
diff --git a/src/ripple/module/app/main/NodeStoreScheduler.h b/src/ripple/module/app/main/NodeStoreScheduler.h
index 37acef98a..a016ddd70 100644
--- a/src/ripple/module/app/main/NodeStoreScheduler.h
+++ b/src/ripple/module/app/main/NodeStoreScheduler.h
@@ -21,7 +21,9 @@
#define RIPPLE_APP_NODESTORESCHEDULER_H_INCLUDED
#include
+#include
#include
+#include
namespace ripple {
diff --git a/src/ripple/module/app/main/RPCHTTPServer.cpp b/src/ripple/module/app/main/RPCHTTPServer.cpp
index 9f3a2f19b..54cdbb07a 100644
--- a/src/ripple/module/app/main/RPCHTTPServer.cpp
+++ b/src/ripple/module/app/main/RPCHTTPServer.cpp
@@ -17,6 +17,9 @@
*/
//==============================================================================
+#include
+#include
+#include
#include
namespace ripple {
@@ -137,9 +140,9 @@ public:
// The "boost::"'s are a workaround for broken versions of tr1::functional that
// require the reference wrapper to be callable. HTTP::Session has abstract functions
// and so references to it are not callable.
- m_jobQueue.addJob (jtRPC, "RPC", boost::bind (
- &RPCHTTPServerImp::processSession, this, boost::_1,
- boost::ref (session)));
+ m_jobQueue.addJob (jtRPC, "RPC", std::bind (
+ &RPCHTTPServerImp::processSession, this, std::placeholders::_1,
+ std::ref (session)));
#endif
}
diff --git a/src/ripple/module/app/misc/NetworkOPs.cpp b/src/ripple/module/app/misc/NetworkOPs.cpp
index 2b04c1d99..871a4ed4c 100644
--- a/src/ripple/module/app/misc/NetworkOPs.cpp
+++ b/src/ripple/module/app/misc/NetworkOPs.cpp
@@ -757,7 +757,7 @@ void NetworkOPsImp::submitTransaction (Job&, SerializedTransaction::pointer iTra
iTrans->add (s);
SerializerIterator sit (s);
- SerializedTransaction::pointer trans = std::make_shared (boost::ref (sit));
+ SerializedTransaction::pointer trans = std::make_shared (std::ref (sit));
uint256 suppress = trans->getTransactionID ();
int flags;
@@ -1431,7 +1431,7 @@ void NetworkOPsImp::switchLastClosedLedger (Ledger::pointer newLedger, bool duri
clearNeedNetworkLedger ();
newLedger->setClosed ();
- Ledger::pointer openLedger = std::make_shared (false, boost::ref (*newLedger));
+ Ledger::pointer openLedger = std::make_shared (false, std::ref (*newLedger));
m_ledgerMaster.switchLedgers (newLedger, openLedger);
protocol::TMStatusChange s;
diff --git a/src/ripple/module/app/misc/SerializedLedger.cpp b/src/ripple/module/app/misc/SerializedLedger.cpp
index 90b362808..d44d08001 100644
--- a/src/ripple/module/app/misc/SerializedLedger.cpp
+++ b/src/ripple/module/app/misc/SerializedLedger.cpp
@@ -86,7 +86,7 @@ SerializedLedgerEntry::SerializedLedgerEntry (LedgerEntryType type, uint256 cons
SerializedLedgerEntry::pointer SerializedLedgerEntry::getMutable () const
{
- SerializedLedgerEntry::pointer ret = std::make_shared (boost::cref (*this));
+ SerializedLedgerEntry::pointer ret = std::make_shared (std::cref (*this));
ret->mMutable = true;
return ret;
}
diff --git a/src/ripple/module/app/node/SqliteFactory.cpp b/src/ripple/module/app/node/SqliteFactory.cpp
index c1c64445d..45af04dd9 100644
--- a/src/ripple/module/app/node/SqliteFactory.cpp
+++ b/src/ripple/module/app/node/SqliteFactory.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace ripple {
static const char* s_nodeStoreDBInit [] =
diff --git a/src/ripple/module/app/paths/RippleLineCache.cpp b/src/ripple/module/app/paths/RippleLineCache.cpp
index 3717d49f0..a131f9bd4 100644
--- a/src/ripple/module/app/paths/RippleLineCache.cpp
+++ b/src/ripple/module/app/paths/RippleLineCache.cpp
@@ -32,7 +32,7 @@ AccountItems& RippleLineCache::getRippleLines (const uint160& accountID)
if (it == mRLMap.end ())
it = mRLMap.insert (std::make_pair (accountID, std::make_shared
- (boost::cref (accountID), boost::cref (mLedger), AccountItem::pointer (new RippleState ())))).first;
+ (std::cref (accountID), std::cref (mLedger), AccountItem::pointer (new RippleState ())))).first;
return *it->second;
}
diff --git a/src/ripple/module/app/peers/PeerSet.cpp b/src/ripple/module/app/peers/PeerSet.cpp
index ad19e03b8..b277763df 100644
--- a/src/ripple/module/app/peers/PeerSet.cpp
+++ b/src/ripple/module/app/peers/PeerSet.cpp
@@ -17,7 +17,8 @@
*/
//==============================================================================
-#include
+#include
+#include
namespace ripple {
@@ -72,7 +73,7 @@ void PeerSet::badPeer (Peer::ptr const& ptr)
void PeerSet::setTimer ()
{
mTimer.expires_from_now (boost::posix_time::milliseconds (mTimerInterval));
- mTimer.async_wait (boost::bind (&PeerSet::TimerEntry, pmDowncast (), boost::asio::placeholders::error));
+ mTimer.async_wait (std::bind (&PeerSet::TimerEntry, pmDowncast (), beast::asio::placeholders::error));
}
void PeerSet::invokeOnTimer ()
diff --git a/src/ripple/module/app/rpc/RPCHandler.cpp b/src/ripple/module/app/rpc/RPCHandler.cpp
index 5dc6ec848..a72bfdc3f 100644
--- a/src/ripple/module/app/rpc/RPCHandler.cpp
+++ b/src/ripple/module/app/rpc/RPCHandler.cpp
@@ -17,6 +17,11 @@
*/
//==============================================================================
+#include
+#include
+#include
+#include
+
namespace ripple {
//
diff --git a/src/ripple/module/app/rpc/RPCServerHandler.cpp b/src/ripple/module/app/rpc/RPCServerHandler.cpp
index 75510b25e..70107b010 100644
--- a/src/ripple/module/app/rpc/RPCServerHandler.cpp
+++ b/src/ripple/module/app/rpc/RPCServerHandler.cpp
@@ -17,6 +17,10 @@
*/
//==============================================================================
+#include
+#include
+#include
+
namespace ripple {
RPCServerHandler::RPCServerHandler (NetworkOPs& networkOPs, Resource::Manager& resourceManager)
diff --git a/src/ripple/module/app/shamap/SHAMap.cpp b/src/ripple/module/app/shamap/SHAMap.cpp
index aebc766ba..c8b67f5b2 100644
--- a/src/ripple/module/app/shamap/SHAMap.cpp
+++ b/src/ripple/module/app/shamap/SHAMap.cpp
@@ -345,7 +345,7 @@ SHAMapTreeNode* SHAMap::getNodePointerNT (const SHAMapNode& id, uint256 const& h
if (filter->haveNode (id, hash, nodeData))
{
SHAMapTreeNode::pointer node = std::make_shared (
- boost::cref (id), boost::cref (nodeData), 0, snfPREFIX, boost::cref (hash), true);
+ std::cref (id), std::cref (nodeData), 0, snfPREFIX, std::cref (hash), true);
canonicalize (hash, node);
// Canonicalize the node with mTNByID to make sure all threads gets the same node
@@ -933,7 +933,7 @@ SHAMapTreeNode* SHAMap::getNodeAsync (
if (filter->haveNode (id, hash, nodeData))
{
ptr = std::make_shared (
- boost::cref (id), boost::cref (nodeData), 0, snfPREFIX, boost::cref (hash), true);
+ std::cref (id), std::cref (nodeData), 0, snfPREFIX, std::cref (hash), true);
filter->gotNode (true, id, hash, nodeData, ptr->getType ());
}
}
diff --git a/src/ripple/module/app/shamap/SHAMap.h b/src/ripple/module/app/shamap/SHAMap.h
index 5effbd122..6ce18e203 100644
--- a/src/ripple/module/app/shamap/SHAMap.h
+++ b/src/ripple/module/app/shamap/SHAMap.h
@@ -23,6 +23,9 @@
#include
#include
#include
+#include
+#include
+#include
#include
diff --git a/src/ripple/module/app/shamap/SHAMapSync.cpp b/src/ripple/module/app/shamap/SHAMapSync.cpp
index 8e804a794..f4ced71d8 100644
--- a/src/ripple/module/app/shamap/SHAMapSync.cpp
+++ b/src/ripple/module/app/shamap/SHAMapSync.cpp
@@ -630,7 +630,7 @@ std::list SHAMap::getFetchPack (SHAMap* have, bool inc
{
std::list ret;
getFetchPack (have, includeLeaves, max,
- std::bind (addFPtoList, boost::ref (ret),
+ std::bind (addFPtoList, std::ref (ret),
std::placeholders::_1, std::placeholders::_2));
return ret;
}
@@ -665,7 +665,7 @@ void SHAMap::getFetchPack (SHAMap* have, bool includeLeaves, int max,
{
Serializer s;
root->addRaw (s, snfPREFIX);
- func (boost::cref(root->getNodeHash ()), boost::cref(s.peekData ()));
+ func (std::cref(root->getNodeHash ()), std::cref(s.peekData ()));
--max;
}
@@ -683,7 +683,7 @@ void SHAMap::getFetchPack (SHAMap* have, bool includeLeaves, int max,
// 1) Add this node to the pack
Serializer s;
node->addRaw (s, snfPREFIX);
- func (boost::cref(node->getNodeHash ()), boost::cref(s.peekData ()));
+ func (std::cref(node->getNodeHash ()), std::cref(s.peekData ()));
--max;
// 2) push non-matching child inner nodes
@@ -705,7 +705,7 @@ void SHAMap::getFetchPack (SHAMap* have, bool includeLeaves, int max,
{
Serializer s;
next->addRaw (s, snfPREFIX);
- func (boost::cref(childHash), boost::cref(s.peekData ()));
+ func (std::cref(childHash), std::cref(s.peekData ()));
--max;
}
}
diff --git a/src/ripple/module/app/shamap/SHAMapSyncFilters.cpp b/src/ripple/module/app/shamap/SHAMapSyncFilters.cpp
index b5da9863e..c5d4eae0b 100644
--- a/src/ripple/module/app/shamap/SHAMapSyncFilters.cpp
+++ b/src/ripple/module/app/shamap/SHAMapSyncFilters.cpp
@@ -43,7 +43,7 @@ void ConsensusTransSetSF::gotNode (bool fromFilter, const SHAMapNode& id, uint25
{
Serializer s (nodeData.begin () + 4, nodeData.end ()); // skip prefix
SerializerIterator sit (s);
- SerializedTransaction::pointer stx = std::make_shared (boost::ref (sit));
+ SerializedTransaction::pointer stx = std::make_shared (std::ref (sit));
assert (stx->getTransactionID () == nodeHash);
getApp().getJobQueue ().addJob (
jtTRANSACTION, "TXS->TXN",
diff --git a/src/ripple/module/app/tx/Transaction.cpp b/src/ripple/module/app/tx/Transaction.cpp
index 838bafee2..7352d4cdc 100644
--- a/src/ripple/module/app/tx/Transaction.cpp
+++ b/src/ripple/module/app/tx/Transaction.cpp
@@ -44,7 +44,7 @@ Transaction::pointer Transaction::sharedTransaction (Blob const& vucTransaction,
Serializer s (vucTransaction);
SerializerIterator sit (s);
- SerializedTransaction::pointer st = std::make_shared (boost::ref (sit));
+ SerializedTransaction::pointer st = std::make_shared (std::ref (sit));
return std::make_shared (st, bValidate);
}
@@ -158,7 +158,7 @@ Transaction::pointer Transaction::transactionFromSQL (Database* db, bool bValida
rawTxn.resize (txSize);
SerializerIterator it (rawTxn);
- SerializedTransaction::pointer txn = std::make_shared (boost::ref (it));
+ SerializedTransaction::pointer txn = std::make_shared (std::ref (it));
Transaction::pointer tr = std::make_shared (txn, bValidate);
TransStatus st (INVALID);
@@ -229,7 +229,7 @@ Transaction::pointer Transaction::transactionFromSQL (const std::string& sql)
rawTxn.resize (txSize);
SerializerIterator it (rawTxn);
- SerializedTransaction::pointer txn = std::make_shared (boost::ref (it));
+ SerializedTransaction::pointer txn = std::make_shared (std::ref (it));
Transaction::pointer tr = std::make_shared (txn, true);
TransStatus st (INVALID);
diff --git a/src/ripple/module/app/tx/TransactionMaster.cpp b/src/ripple/module/app/tx/TransactionMaster.cpp
index 8eed7494c..740859a70 100644
--- a/src/ripple/module/app/tx/TransactionMaster.cpp
+++ b/src/ripple/module/app/tx/TransactionMaster.cpp
@@ -66,7 +66,7 @@ SerializedTransaction::pointer TransactionMaster::fetch (SHAMapItem::ref item,
if (type == SHAMapTreeNode::tnTRANSACTION_NM)
{
SerializerIterator sit (item->peekSerializer ());
- txn = std::make_shared (boost::ref (sit));
+ txn = std::make_shared (std::ref (sit));
}
else if (type == SHAMapTreeNode::tnTRANSACTION_MD)
{
@@ -75,7 +75,7 @@ SerializedTransaction::pointer TransactionMaster::fetch (SHAMapItem::ref item,
item->peekSerializer ().getVL (s.modData (), 0, length);
SerializerIterator sit (s);
- txn = std::make_shared (boost::ref (sit));
+ txn = std::make_shared (std::ref (sit));
}
}
else
diff --git a/src/ripple/module/app/tx/TxQueue.cpp b/src/ripple/module/app/tx/TxQueue.cpp
index 187537cbd..d36f80650 100644
--- a/src/ripple/module/app/tx/TxQueue.cpp
+++ b/src/ripple/module/app/tx/TxQueue.cpp
@@ -17,6 +17,11 @@
*/
//==============================================================================
+#include
+#include
+#include
+#include
+
namespace ripple {
class TxQueueImp
diff --git a/src/ripple/module/app/websocket/WSConnection.cpp b/src/ripple/module/app/websocket/WSConnection.cpp
index 860ef54ae..f39145ead 100644
--- a/src/ripple/module/app/websocket/WSConnection.cpp
+++ b/src/ripple/module/app/websocket/WSConnection.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace ripple {
SETUP_LOGN (WSConnection, "WSConnection")
diff --git a/src/ripple/module/app/websocket/WSConnection.h b/src/ripple/module/app/websocket/WSConnection.h
index 87b50f574..006a8e677 100644
--- a/src/ripple/module/app/websocket/WSConnection.h
+++ b/src/ripple/module/app/websocket/WSConnection.h
@@ -20,6 +20,8 @@
#ifndef RIPPLE_WSCONNECTION_H
#define RIPPLE_WSCONNECTION_H
+#include
+
namespace ripple {
/** A Ripple WebSocket connection handler.
@@ -146,7 +148,7 @@ public:
connection_ptr ptr = m_connection.lock ();
if (ptr)
- m_io_service.dispatch (ptr->get_strand ().wrap (boost::bind (
+ m_io_service.dispatch (ptr->get_strand ().wrap (std::bind (
&WSConnectionType ::handle_disconnect,
m_connection)));
}
@@ -193,8 +195,8 @@ public:
(getConfig ().WEBSOCKET_PING_FREQ));
m_pingTimer.async_wait (ptr->get_strand ().wrap (
- boost::bind (&WSConnectionType ::pingTimer,
- m_connection, &m_serverHandler, boost::asio::placeholders::error)));
+ std::bind (&WSConnectionType ::pingTimer,
+ m_connection, &m_serverHandler, beast::asio::placeholders::error)));
}
}
diff --git a/src/ripple/module/app/websocket/WSDoor.cpp b/src/ripple/module/app/websocket/WSDoor.cpp
index 5990b4929..5fd50a0cd 100644
--- a/src/ripple/module/app/websocket/WSDoor.cpp
+++ b/src/ripple/module/app/websocket/WSDoor.cpp
@@ -17,6 +17,7 @@
*/
//==============================================================================
+#include
#include //
namespace ripple {
diff --git a/src/ripple/module/app/websocket/WSServerHandler.cpp b/src/ripple/module/app/websocket/WSServerHandler.cpp
index 740accd7f..2f755da51 100644
--- a/src/ripple/module/app/websocket/WSServerHandler.cpp
+++ b/src/ripple/module/app/websocket/WSServerHandler.cpp
@@ -17,6 +17,8 @@
*/
//==============================================================================
+#include
+
namespace ripple {
SETUP_LOGN (WSServerHandlerLog,"WSServerHandler")
diff --git a/src/ripple/module/app/websocket/WSServerHandler.h b/src/ripple/module/app/websocket/WSServerHandler.h
index 0606d4a2c..d7a9a9361 100644
--- a/src/ripple/module/app/websocket/WSServerHandler.h
+++ b/src/ripple/module/app/websocket/WSServerHandler.h
@@ -20,6 +20,8 @@
#ifndef RIPPLE_WSSERVERHANDLER_H_INCLUDED
#define RIPPLE_WSSERVERHANDLER_H_INCLUDED
+#include
+
namespace ripple {
extern bool serverOkay (std::string& reason);
@@ -194,8 +196,8 @@ public:
{
std::pair