Skip to content

Commit

Permalink
Fix building against Boost 1.87.0 (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
FireBurn authored Dec 18, 2024
1 parent 3738ccd commit 2b0cbf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/input/api/DSU/DSUControllerProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ bool DSUControllerProvider::connect()
using namespace boost::asio;

ip::udp::resolver resolver(m_io_service);
const ip::udp::resolver::query query(ip::udp::v4(), get_settings().ip, fmt::format("{}", get_settings().port),
ip::udp::resolver::query::canonical_name);
m_receiver_endpoint = *resolver.resolve(query);
m_receiver_endpoint = *resolver.resolve(get_settings().ip, fmt::format("{}", get_settings().port)).cbegin();

if (m_socket.is_open())
m_socket.close();
Expand Down
2 changes: 1 addition & 1 deletion src/input/api/DSU/DSUControllerProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class DSUControllerProvider : public ControllerProvider<DSUProviderSettings>
std::condition_variable m_writer_cond;

uint32 m_uid;
boost::asio::io_service m_io_service;
boost::asio::io_context m_io_service;
boost::asio::ip::udp::endpoint m_receiver_endpoint;
boost::asio::ip::udp::socket m_socket;

Expand Down

0 comments on commit 2b0cbf7

Please sign in to comment.