Use boost for functional when the config is set

This commit is contained in:
Vinnie Falco
2013-09-27 13:07:10 -07:00
parent 026b9268ae
commit e132aabdae
2 changed files with 5 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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