| Summary: | boost::asio::use_future can't be used on Fedora | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jonathan Wakely <jwakely> |
| Component: | boost | Assignee: | Jonathan Wakely <jwakely> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | dakingun, denis.arnaud_fedora, fweimer, jwakely, me |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | boost-1.60.0-10.fc25 boost-1.60.0-8.fc24 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-11 19:28:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
boost-1.60.0-10.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bdf59f246f boost-1.60.0-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0d80628eb6 boost-1.58.0-12.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-09abe47360 boost-1.58.0-12.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-09abe47360 boost-1.60.0-10.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-bdf59f246f boost-1.60.0-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0d80628eb6 boost-1.60.0-10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. boost-1.60.0-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |
The following code cannot be compiled on any supported version of Fedora: #include <boost/asio.hpp> #include <boost/asio/use_future.hpp> void f(boost::asio::ip::tcp::socket& s, boost::asio::mutable_buffers_1& buf) { std::future<std::size_t> my_future = s.async_read_some(buf, boost::asio::use_future); } The problem is that the versions of GCC shipped in Fedora do support the use of allocator<void>::construct() that Boost.Asio uses. This has been fixed in later releases of GCC (by https://gcc.gnu.org/PR78052), but this change to Asio would solve the problem too: https://github.com/boostorg/asio/commit/42e7869f411a75512fb6994c634eb086fb9eb5cc