Title: compilation error with ready(response) · Issue #683 · cpp-netlib/cpp-netlib · GitHub
Open Graph Title: compilation error with ready(response) · Issue #683 · cpp-netlib/cpp-netlib
X Title: compilation error with ready(response) · Issue #683 · cpp-netlib/cpp-netlib
Description: #include
Open Graph Description: #include
X 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"...
Opengraph URL: https://github.com/cpp-netlib/cpp-netlib/issues/683
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"compilation error with ready(response)","articleBody":"``` c++\n#include \u003cboost/network/include/http/client.hpp\u003e\n\nint main() {\n using namespace boost::network;\n using namespace boost::network::http;\n\n client c;\n client::request req{\"http://github.com\"};\n auto resp = c.get(req);\n auto check = ready(resp);\n}\n```\n\nthis code fails to compile with `g++ (Ubuntu 6.2.0-3ubuntu14) 6.2.0 20160910`\n\nThe compiler output is (path shortened):\n\n```\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp: In instantiation of ‘boost::network::http::impl::ready_wrapper\u003cTag\u003e::operator bool() [with Tag = boost::network::http::tags::http_async_8bit_udp_resolve]’:\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp:38:42: required from ‘bool boost::network::http::ready(const boost::network::http::async_message\u003cTag\u003e\u0026) [with Tag = boost::network::http::tags::http_async_8bit_udp_resolve]’\n/home/dvd/Projects/personal/rg/ck/main.cpp:10:25: required from here\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp:27:44: error: ‘class std::shared_future\u003cstd::__cxx11::basic_string\u003cchar\u003e \u003e’ has no member named ‘is_ready’\n return wrapper_base::_message.version_.is_ready() \u0026\u0026\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp:28:43: error: ‘class std::shared_future\u003cshort unsigned int\u003e’ has no member named ‘is_ready’\n wrapper_base::_message.status_.is_ready() \u0026\u0026\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp:29:51: error: ‘class std::shared_future\u003cstd::__cxx11::basic_string\u003cchar\u003e \u003e’ has no member named ‘is_ready’\n wrapper_base::_message.status_message_.is_ready() \u0026\u0026\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp:30:44: error: ‘class std::shared_future\u003cstd::multimap\u003cstd::__cxx11::basic_string\u003cchar\u003e, std::__cxx11::basic_string\u003cchar\u003e, boost::network::impl::is_less_ignore_case_impl\u003e \u003e’ has no member named ‘is_ready’\n wrapper_base::_message.headers_.is_ready() \u0026\u0026\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~\n.../include/boost/network/protocol/http/message/wrappers/ready.hpp:31:41: error: ‘class std::shared_future\u003cstd::__cxx11::basic_string\u003cchar\u003e \u003e’ has no member named ‘is_ready’\n wrapper_base::_message.body_.is_ready();\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~\n```\n\naccording to [cppreference](http://en.cppreference.com/w/cpp/experimental/shared_future) `is_ready` is part of the new `concurrency TS`\n\nany workaround?\n","author":{"url":"https://github.com/dvd0101","@type":"Person","name":"dvd0101"},"datePublished":"2016-09-14T20:57:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/683/cpp-netlib/issues/683"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f4102b7-51a1-2721-97a3-90dd7ddb11c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECE8:2535EF:18B687:234C09:696F97E2 |
| html-safe-nonce | 5177936f86b0639d528c00ce000277d38929993e00c8bac63e6d8e0058a0f8ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0U4OjI1MzVFRjoxOEI2ODc6MjM0QzA5OjY5NkY5N0UyIiwidmlzaXRvcl9pZCI6IjExNjY4NzY1MDM2NjA1MzM3MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 148ebcd8032da5399460f8207d1ff71cba282d7b7688471a4b8ffe06839bb35f |
| hovercard-subject-tag | issue:177018917 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cpp-netlib/cpp-netlib/683/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80cd6653ea7d9c01789ea1898a662554e0540514fffdfe2ea3186eb9edb4f215/cpp-netlib/cpp-netlib/issues/683 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80cd6653ea7d9c01789ea1898a662554e0540514fffdfe2ea3186eb9edb4f215/cpp-netlib/cpp-netlib/issues/683 |
| og:image:alt | #include |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dvd0101 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/cpp-netlib/cpp-netlib git https://github.com/cpp-netlib/cpp-netlib.git |
| octolytics-dimension-user_id | 192422 |
| octolytics-dimension-user_login | cpp-netlib |
| octolytics-dimension-repository_id | 494068 |
| octolytics-dimension-repository_nwo | cpp-netlib/cpp-netlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 469399 |
| octolytics-dimension-repository_parent_nwo | glynos/cpp-netlib |
| octolytics-dimension-repository_network_root_id | 469399 |
| octolytics-dimension-repository_network_root_nwo | glynos/cpp-netlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width