catkin_make have error about boost1.74
Camixxx opened this issue · 1 comments
Camixxx commented
ecto/samples/experimental/necto.cpp:
connection_ptr new_conn(new connection(acceptor_.get_io_service()));
But acrroding to this:https://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/history.html
The previously deprecated get_io_context and get_io_service member functions have now been removed.
So I modified it like this:
connection_ptr new_conn(new connection(acceptor_.get_executor().context()));
Then:
error: no matching function for call to ‘ecto_X::connection::connection(boost::asio::execution_context&)’
267 | connection_ptr new_conn(new connection(acceptor_.get_executor().context()));
... no known conversion for argument 1 from ‘boost::asio::execution_context’ to ‘ecto_X::connection&&’
ninafiona commented
Have you by any chance managed to solve the problem? I also came across errors when building with boost version 1.7+.