Fixed build with boost >=1.87

This commit is contained in:
matlabbe
2025-04-12 13:39:10 -07:00
parent c0dc4b43f3
commit 08f031e11c
4 changed files with 13 additions and 0 deletions

View File

@@ -7144,7 +7144,11 @@ Lidar * PreferencesDialog::createLidar()
// Connect to sensor
lidar = new LidarVLP16(
#if BOOST_VERSION >= 108700 // Version 1.87.0
boost::asio::ip::make_address(uFormat("%ld.%ld.%ld.%ld",
#else
boost::asio::ip::address_v4::from_string(uFormat("%ld.%ld.%ld.%ld",
#endif
(size_t)_ui->spinBox_vlp16_ip1->value(),
(size_t)_ui->spinBox_vlp16_ip2->value(),
(size_t)_ui->spinBox_vlp16_ip3->value(),