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&&’
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: