Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use make_address from boost as from_string is deprecated (#1308)
Since boost 1.87.0 boost::asio::ip::address::from_string is no longer available ref: boostorg/asio@c0d1cfc fixes: ../server/control_server.cpp: In member function 'void ControlServer::start()': ../server/control_server.cpp:164:111: error: 'from_string' is not a member of 'boost::asio::ip::address' 164 | tcp::endpoint(boost::asio::ip::address::from_string(address), tcp_settings_.port))); | ^~~~~~~~~~~ ../server/control_server.cpp:180:112: error: 'from_string' is not a member of 'boost::asio::ip::address' 180 | tcp::endpoint(boost::asio::ip::address::from_string(address), http_settings_.port))); | ^~~~~~~~~~~ ../server/streamreader/tcp_stream.cpp: In constructor 'streamreader::TcpStream::TcpStream(streamreader::PcmStream::Listener*, boost::asio::io_context&, const ServerSettings&, const streamreader::StreamUri&)': ../server/streamreader/tcp_stream.cpp:67:97: error: 'from_string' is not a member of 'boost::asio::ip::address' 67 | acceptor_ = make_unique<tcp::acceptor>(strand_, tcp::endpoint(boost::asio::ip::address::from_string(host_), port_)); | ^~~~~~~~~~~ ../server/streamreader/tcp_stream.cpp: In member function 'virtual void streamreader::TcpStream::connect()': ../server/streamreader/tcp_stream.cpp:96:75: error: 'from_string' is not a member of 'boost::asio::ip::address' 96 | boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string(host_), port_); | ^~~~~~~~~~~ ../server/stream_server.cpp: In member function 'void StreamServer::start()': ../server/stream_server.cpp:234:103: error: 'from_string' is not a member of 'boost::asio::ip::address' 234 | tcp::endpoint(boost::asio::ip::address::from_string(address), settings_.stream.port))); |
- Loading branch information