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

@@ -86,7 +86,11 @@ int main(int argc, char * argv[])
if(!ip.empty())
{
printf("Using ip=%s port=%d\n", ip.c_str(), port);
#if BOOST_VERSION >= 108700 // Version 1.87.0
lidar = new LidarVLP16(boost::asio::ip::make_address(ip), port);
#else
lidar = new LidarVLP16(boost::asio::ip::address_v4::from_string(ip), port);
#endif
}
else
{