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
+4
View File
@@ -100,7 +100,11 @@ int main(int argc, char * argv[])
rtabmap::LidarVLP16 * lidar = 0;
if(driver == 0)
{
#if BOOST_VERSION >= 108700 // Version 1.87.0
lidar = new rtabmap::LidarVLP16(boost::asio::ip::make_address(ip), port);
#else
lidar = new rtabmap::LidarVLP16(boost::asio::ip::address_v4::from_string(ip), port);
#endif
}
else
{