evemuproject / evemu_server

MAIN SERVER DEVELOPMENT
http://www.evemu.org
148 stars 103 forks source link

Boost: Build fails with boost version 1.72.0 #162

Closed EndlessEden closed 3 years ago

EndlessEden commented 4 years ago
/usr/include/boost/asio/detail/bind_handler.hpp:170:5: error: no matching function for call to object of type 'const boost::asio::detail::write_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::executor>, boost::asio::mutable_buffers_1, const boost::asio::mutable_buffer *, boost::asio::detail::transfer_all_t, std::tr1::_Bind<std::tr1::_Mem_fn<void (APIServerConnection::*)()> (std::tr1::shared_ptr<APIServerConnection>)>>'
    handler_(arg1_, arg2_);

Seems like missing header? but i cant find anything...

edit: earlier errors were overlooked, starts with /src/eve-server/apiserver/APIServerListener.cpp:45:99: error: ‘boost::asio::ip::tcp::acceptor’ {aka ‘class boost::asio::basic_socket_acceptor<boost::asio::ip::tcp>’} has no member named ‘get_io_service’

EndlessEden commented 3 years ago

digging into this further lately: https://www.boost.org/doc/libs/1_70_0/doc/html/boost_asio/history.html 'get_io_service()' was replaced by '.get_executor().context()' should be used instead, and most usages of 'io_service' should become 'io_context'.