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