mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-09 21:10:19 +08:00
Fixed build with boost >=1.87
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user