From d544b59e823efc44bf053c75ad28093407b24105 Mon Sep 17 00:00:00 2001 From: Lucas Walter Date: Thu, 10 Nov 2022 04:50:36 -0800 Subject: [PATCH] use default C++ and boost::placeholders::_1 --- CMakeLists.txt | 3 --- src/image2rtsp.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02d1be7..dcdc9ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,6 @@ cmake_minimum_required(VERSION 2.8.3) project(ros_rtsp) -## Compile as C++11, supported in ROS Kinetic and newer -add_compile_options(-std=c++11) - ## Find catkin macros and libraries ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) ## is used, also find other catkin packages diff --git a/src/image2rtsp.cpp b/src/image2rtsp.cpp index 55da388..b2b75c3 100644 --- a/src/image2rtsp.cpp +++ b/src/image2rtsp.cpp @@ -159,7 +159,7 @@ void Image2RTSPNodelet::url_connected(string url) { if (num_of_clients[url]==0) { // Subscribe to the ROS topic - subs[url] = nh.subscribe(source, 1, boost::bind(&Image2RTSPNodelet::imageCallback, this, _1, url)); + subs[url] = nh.subscribe(source, 1, boost::bind(&Image2RTSPNodelet::imageCallback, this, boost::placeholders::_1, url)); } num_of_clients[url]++; }