mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Use boost for functional when the config is set
This commit is contained in:
@@ -62,8 +62,8 @@ public:
|
||||
{
|
||||
result_type result;
|
||||
boost::asio::io_service io_service;
|
||||
async_get (io_service, url, bind (
|
||||
&HTTPClientType::handle_get, placeholders::_1, &result));
|
||||
async_get (io_service, url, beast::bind (
|
||||
&HTTPClientType::handle_get, beast::placeholders::_1, &result));
|
||||
io_service.run ();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
// Choose a source of bind, placeholders, and function
|
||||
|
||||
#if !BEAST_FUNCTIONAL_USES_STD && !BEAST_FUNCTIONAL_USES_TR1 && !BEAST_FUNCTIONAL_USES_BOOST
|
||||
# if BEAST_MSVC
|
||||
# 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 <ciso646> // detect version of std::lib
|
||||
|
||||
Reference in New Issue
Block a user