Skip to content

Commit 0932486

Browse files
authored
Merge pull request #6166 from mvieth/boost_1_87
Preparation for Boost 1.87, flag change for GCC 14
2 parents f282546 + 25be27e commit 0932486

11 files changed

+14
-14
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ endif()
117117
if(CMAKE_COMPILER_IS_GNUCXX)
118118
if("${CMAKE_CXX_FLAGS}" STREQUAL "${CMAKE_CXX_FLAGS_DEFAULT}")
119119
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7)
120-
string(APPEND CMAKE_CXX_FLAGS " -Wabi=11")
120+
string(APPEND CMAKE_CXX_FLAGS " -Wabi=18")
121121
else()
122122
string(APPEND CMAKE_CXX_FLAGS " -Wabi")
123123
endif()

apps/src/openni_mobile_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class PCLMobileServer {
157157

158158
viewer_.showCloud(getLatestPointCloud());
159159

160-
boost::asio::io_service io_service;
160+
boost::asio::io_context io_service;
161161
tcp::endpoint endpoint(tcp::v4(), static_cast<unsigned short>(port_));
162162
tcp::acceptor acceptor(io_service, endpoint);
163163
tcp::socket socket(io_service);

apps/src/openni_octree_compression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,15 +415,15 @@ main(int argc, char** argv)
415415
if (bEnDecode) {
416416
// ENCODING
417417
try {
418-
boost::asio::io_service io_service;
418+
boost::asio::io_context io_service;
419419
tcp::endpoint endpoint(tcp::v4(), 6666);
420420
tcp::acceptor acceptor(io_service, endpoint);
421421

422422
tcp::iostream socketStream;
423423

424424
std::cout << "Waiting for connection.." << std::endl;
425425

426-
acceptor.accept(*socketStream.rdbuf());
426+
acceptor.accept(socketStream.rdbuf()->socket());
427427

428428
std::cout << "Connected!" << std::endl;
429429

apps/src/openni_organized_compression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,15 +438,15 @@ main(int argc, char** argv)
438438
if (bEnDecode) {
439439
// ENCODING
440440
try {
441-
boost::asio::io_service io_service;
441+
boost::asio::io_context io_service;
442442
tcp::endpoint endpoint(tcp::v4(), 6666);
443443
tcp::acceptor acceptor(io_service, endpoint);
444444

445445
tcp::iostream socketStream;
446446

447447
std::cout << "Waiting for connection.." << std::endl;
448448

449-
acceptor.accept(*socketStream.rdbuf());
449+
acceptor.accept(socketStream.rdbuf()->socket());
450450

451451
std::cout << "Connected!" << std::endl;
452452

io/include/pcl/io/hdl_grabber.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ namespace pcl
274274
boost::asio::ip::udp::endpoint udp_listener_endpoint_;
275275
boost::asio::ip::address source_address_filter_;
276276
std::uint16_t source_port_filter_;
277-
boost::asio::io_service hdl_read_socket_service_;
277+
boost::asio::io_context hdl_read_socket_service_;
278278
boost::asio::ip::udp::socket *hdl_read_socket_;
279279
std::string pcap_file_name_;
280280
std::thread *queue_consumer_thread_;

io/include/pcl/io/robot_eye_grabber.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace pcl
131131

132132
boost::asio::ip::address sensor_address_;
133133
boost::asio::ip::udp::endpoint sender_endpoint_;
134-
boost::asio::io_service io_service_;
134+
boost::asio::io_context io_service_;
135135
std::shared_ptr<boost::asio::ip::udp::socket> socket_;
136136
std::shared_ptr<std::thread> socket_thread_;
137137
std::shared_ptr<std::thread> consumer_thread_;

io/include/pcl/io/tim_grabber.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class PCL_EXPORTS TimGrabber : public Grabber
128128
std::vector<float> distances_;
129129

130130
boost::asio::ip::tcp::endpoint tcp_endpoint_;
131-
boost::asio::io_service tim_io_service_;
131+
boost::asio::io_context tim_io_service_;
132132
boost::asio::ip::tcp::socket tim_socket_;
133133
//// wait time for receiving data (on the order of milliseconds)
134134
unsigned int wait_time_milliseconds_ = 0;

io/src/hdl_grabber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ pcl::HDLGrabber::loadHDL32Corrections ()
287287
boost::asio::ip::address
288288
pcl::HDLGrabber::getDefaultNetworkAddress ()
289289
{
290-
return (boost::asio::ip::address::from_string ("192.168.3.255"));
290+
return (boost::asio::ip::make_address ("192.168.3.255"));
291291
}
292292

293293
/////////////////////////////////////////////////////////////////////////////

io/src/robot_eye_grabber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void
269269
pcl::RobotEyeGrabber::socketThreadLoop ()
270270
{
271271
asyncSocketReceive();
272-
io_service_.reset();
272+
io_service_.restart();
273273
io_service_.run();
274274
}
275275

io/src/tim_grabber.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ pcl::TimGrabber::start ()
184184

185185
try {
186186
boost::asio::ip::tcp::resolver resolver (tim_io_service_);
187-
tcp_endpoint_ = *resolver.resolve (tcp_endpoint_);
188-
tim_socket_.connect (tcp_endpoint_);
187+
boost::asio::ip::tcp::resolver::results_type endpoints = resolver.resolve (tcp_endpoint_);
188+
boost::asio::connect(tim_socket_, endpoints);
189189
}
190190
catch (std::exception& e)
191191
{

io/src/vlp_grabber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pcl::VLPGrabber::loadVLP16Corrections ()
9292
boost::asio::ip::address
9393
pcl::VLPGrabber::getDefaultNetworkAddress ()
9494
{
95-
return (boost::asio::ip::address::from_string ("255.255.255.255"));
95+
return (boost::asio::ip::make_address ("255.255.255.255"));
9696
}
9797

9898
/////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)