Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

compilation error with ready(response) #683

Open
Assignees
glynos
Milestone
@dvd0101

Description

@dvd0101
#include<boost/network/include/http/client.hpp>intmain() {usingnamespaceboost::network;usingnamespaceboost::network::http;    client c;    client::request req{"http://github.com"};auto resp = c.get(req);auto check =ready(resp);}

this code fails to compile withg++ (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 tocppreferenceis_ready is part of the newconcurrency TS

any workaround?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp