Skip to content

Commit

Permalink
Prepare for Boost 1.87
Browse files Browse the repository at this point in the history
  • Loading branch information
mvieth committed Nov 5, 2024
1 parent df3af0a commit a14f1af
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion io/include/pcl/io/hdl_grabber.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ namespace pcl
boost::asio::ip::udp::endpoint udp_listener_endpoint_;
boost::asio::ip::address source_address_filter_;
std::uint16_t source_port_filter_;
boost::asio::io_service hdl_read_socket_service_;
boost::asio::io_context hdl_read_socket_service_; // TODO see https://www.boost.org/doc/libs/1_66_0/doc/html/boost_asio/history.html Change in other files as well!
boost::asio::ip::udp::socket *hdl_read_socket_;
std::string pcap_file_name_;
std::thread *queue_consumer_thread_;
Expand Down
2 changes: 1 addition & 1 deletion io/include/pcl/io/robot_eye_grabber.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ namespace pcl

boost::asio::ip::address sensor_address_;
boost::asio::ip::udp::endpoint sender_endpoint_;
boost::asio::io_service io_service_;
boost::asio::io_context io_service_;
std::shared_ptr<boost::asio::ip::udp::socket> socket_;
std::shared_ptr<std::thread> socket_thread_;
std::shared_ptr<std::thread> consumer_thread_;
Expand Down
2 changes: 1 addition & 1 deletion io/include/pcl/io/tim_grabber.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class PCL_EXPORTS TimGrabber : public Grabber
std::vector<float> distances_;

boost::asio::ip::tcp::endpoint tcp_endpoint_;
boost::asio::io_service tim_io_service_;
boost::asio::io_context tim_io_service_;
boost::asio::ip::tcp::socket tim_socket_;
//// wait time for receiving data (on the order of milliseconds)
unsigned int wait_time_milliseconds_ = 0;
Expand Down
2 changes: 1 addition & 1 deletion io/src/hdl_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pcl::HDLGrabber::loadHDL32Corrections ()
boost::asio::ip::address
pcl::HDLGrabber::getDefaultNetworkAddress ()
{
return (boost::asio::ip::address::from_string ("192.168.3.255"));
return (boost::asio::ip::make_address ("192.168.3.255"));
}

/////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion io/src/robot_eye_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void
pcl::RobotEyeGrabber::socketThreadLoop ()
{
asyncSocketReceive();
io_service_.reset();
io_service_.restart();
io_service_.run();
}

Expand Down
4 changes: 2 additions & 2 deletions io/src/tim_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ pcl::TimGrabber::start ()

try {
boost::asio::ip::tcp::resolver resolver (tim_io_service_);
tcp_endpoint_ = *resolver.resolve (tcp_endpoint_);
tim_socket_.connect (tcp_endpoint_);
boost::asio::ip::tcp::resolver::results_type endpoints = resolver.resolve (tcp_endpoint_);
boost::asio::connect(tim_socket_, endpoints);
}
catch (std::exception& e)
{
Expand Down
2 changes: 1 addition & 1 deletion io/src/vlp_grabber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pcl::VLPGrabber::loadVLP16Corrections ()
boost::asio::ip::address
pcl::VLPGrabber::getDefaultNetworkAddress ()
{
return (boost::asio::ip::address::from_string ("255.255.255.255"));
return (boost::asio::ip::make_address ("255.255.255.255"));
}

/////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit a14f1af

Please sign in to comment.