net-p2p/libtorrent-rasterbar: unbreak with boost 1.72
In file included from src/http_connection.cpp:33: In file included from include/libtorrent/http_connection.hpp:62: In file included from include/libtorrent/socket.hpp:57: In file included from /usr/local/include/boost/asio/write.hpp:1262: /usr/local/include/boost/asio/impl/write.hpp:425:40: error: no type named 'executor_type' in 'libtorrent::socket_type' typedef typename AsyncWriteStream::executor_type executor_type; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /usr/local/include/boost/asio/impl/write.hpp:534:7: note: in instantiation of template class 'boost::asio::detail::initiate_async_write_buffer_sequence<libtorrent::socket_type>' requested here detail::initiate_async_write_buffer_sequence<AsyncWriteStream>(s), ^ src/http_connection.cpp:277:3: note: in instantiation of function template specialization 'boost::asio::async_write<libtorrent::socket_type, boost::asio::mutable_buffers_1, boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > > >' requested here async_write(m_sock, boost::asio::buffer(m_sendbuffer) ^ src/http_connection.cpp:631:3: error: no matching function for call to 'async_write' async_write(m_sock, boost::asio::buffer(m_sendbuffer) ^~~~~~~~~~~ /usr/local/include/boost/asio/impl/write.hpp:507:1: note: candidate template ignored: substitution failure [with AsyncWriteStream = libtorrent::socket_type, ConstBufferSequence = boost::asio::mutable_buffers_1, CompletionCondition = boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > >]: no type named 'executor_type' in 'libtorrent::socket_type' async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, ^ /usr/local/include/boost/asio/impl/write.hpp:526:1: note: candidate template ignored: substitution failure [with AsyncWriteStream = libtorrent::socket_type, ConstBufferSequence = boost::asio::mutable_buffers_1, WriteHandler = boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > >] async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, ^ /usr/local/include/boost/asio/impl/write.hpp:739:1: note: candidate template ignored: requirement 'is_dynamic_buffer_v1<typename decay<mutable_buffers_1>::type>::value' was not satisfied [with AsyncWriteStream = libtorrent::socket_type, DynamicBuffer_v1 = boost::asio::mutable_buffers_1, WriteHandler = boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > >] async_write(AsyncWriteStream& s, ^ /usr/local/include/boost/asio/impl/write.hpp:758:1: note: candidate template ignored: substitution failure [with AsyncWriteStream = libtorrent::socket_type, DynamicBuffer_v1 = boost::asio::mutable_buffers_1, CompletionCondition = boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > >]: no type named 'executor_type' in 'libtorrent::socket_type' async_write(AsyncWriteStream& s, ^ /usr/local/include/boost/asio/impl/write.hpp:782:1: note: candidate template ignored: could not match 'basic_streambuf<type-parameter-0-1>' against 'boost::asio::mutable_buffers_1' async_write(AsyncWriteStream& s, ^ /usr/local/include/boost/asio/impl/write.hpp:796:1: note: candidate template ignored: could not match 'basic_streambuf<type-parameter-0-1>' against 'boost::asio::mutable_buffers_1' async_write(AsyncWriteStream& s, ^ /usr/local/include/boost/asio/impl/write.hpp:1009:1: note: candidate template ignored: requirement 'is_dynamic_buffer_v2<mutable_buffers_1>::value' was not satisfied [with AsyncWriteStream = libtorrent::socket_type, DynamicBuffer_v2 = boost::asio::mutable_buffers_1, WriteHandler = boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > >] async_write(AsyncWriteStream& s, DynamicBuffer_v2 buffers, ^ /usr/local/include/boost/asio/impl/write.hpp:1026:1: note: candidate template ignored: substitution failure [with AsyncWriteStream = libtorrent::socket_type, DynamicBuffer_v2 = boost::asio::mutable_buffers_1, CompletionCondition = boost::_bi::bind_t<void, boost::_mfi::mf1<void, libtorrent::http_connection, const boost::system::error_code &>, boost::_bi::list2<boost::_bi::value<boost::shared_ptr<libtorrent::http_connection> >, boost::arg<1> > >]: no type named 'executor_type' in 'libtorrent::socket_type' async_write(AsyncWriteStream& s, DynamicBuffer_v2 buffers, ^ Obtained from: upstream
This commit is contained in:
parent
29d77e9e77
commit
037c1467bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517544
15
net-p2p/libtorrent-rasterbar/files/patch-boost-1.72
Normal file
15
net-p2p/libtorrent-rasterbar/files/patch-boost-1.72
Normal file
@ -0,0 +1,15 @@
|
||||
https://github.com/arvidn/libtorrent/commit/e4b812b50b0a
|
||||
|
||||
--- include/libtorrent/socket_type.hpp.orig 2018-10-05 09:19:18 UTC
|
||||
+++ include/libtorrent/socket_type.hpp
|
||||
@@ -192,6 +192,10 @@ namespace libtorrent
|
||||
typedef tcp::socket::receive_buffer_size receive_buffer_size;
|
||||
typedef tcp::socket::send_buffer_size send_buffer_size;
|
||||
|
||||
+#if BOOST_VERSION >= 106600
|
||||
+ using executor_type = tcp::socket::executor_type;
|
||||
+#endif
|
||||
+
|
||||
explicit socket_type(io_service& ios): m_io_service(ios), m_type(0) {}
|
||||
~socket_type();
|
||||
|
Loading…
Reference in New Issue
Block a user