forked from glynos/cpp-netlib
-
Notifications
You must be signed in to change notification settings - Fork 425
Open
Milestone
Description
#include <boost/network/include/http/client.hpp>
int main() {
using namespace boost::network;
using namespace boost::network::http;
client c;
client::request req{"http://github.com"};
auto resp = c.get(req);
auto check = ready(resp);
}
this code fails to compile with g++ (Ubuntu 6.2.0-3ubuntu14) 6.2.0 20160910
The compiler output is (path shortened):
.../include/boost/network/protocol/http/message/wrappers/ready.hpp: In instantiation of ‘boost::network::http::impl::ready_wrapper<Tag>::operator bool() [with Tag = boost::network::http::tags::http_async_8bit_udp_resolve]’:
.../include/boost/network/protocol/http/message/wrappers/ready.hpp:38:42: required from ‘bool boost::network::http::ready(const boost::network::http::async_message<Tag>&) [with Tag = boost::network::http::tags::http_async_8bit_udp_resolve]’
/home/dvd/Projects/personal/rg/ck/main.cpp:10:25: required from here
.../include/boost/network/protocol/http/message/wrappers/ready.hpp:27:44: error: ‘class std::shared_future<std::__cxx11::basic_string<char> >’ has no member named ‘is_ready’
return wrapper_base::_message.version_.is_ready() &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.../include/boost/network/protocol/http/message/wrappers/ready.hpp:28:43: error: ‘class std::shared_future<short unsigned int>’ has no member named ‘is_ready’
wrapper_base::_message.status_.is_ready() &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.../include/boost/network/protocol/http/message/wrappers/ready.hpp:29:51: error: ‘class std::shared_future<std::__cxx11::basic_string<char> >’ has no member named ‘is_ready’
wrapper_base::_message.status_message_.is_ready() &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.../include/boost/network/protocol/http/message/wrappers/ready.hpp:30:44: error: ‘class std::shared_future<std::multimap<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, boost::network::impl::is_less_ignore_case_impl> >’ has no member named ‘is_ready’
wrapper_base::_message.headers_.is_ready() &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.../include/boost/network/protocol/http/message/wrappers/ready.hpp:31:41: error: ‘class std::shared_future<std::__cxx11::basic_string<char> >’ has no member named ‘is_ready’
wrapper_base::_message.body_.is_ready();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
according to cppreference is_ready
is part of the new concurrency TS
any workaround?