summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-01-28 15:16:25 +0100
committerAlexis Ballier <aballier@gentoo.org>2017-01-28 16:26:55 +0100
commit86155b599c5599a84831e1893214f65f3132a9e4 (patch)
tree7eb6559ad25533aedf4d90bdb68f228c67a43627 /dev-ros/image_cb_detector/files
parentdev-ros/laser_filters: Backport upstream patch to fix build in C++11 mode. (diff)
downloadgentoo-86155b599c5599a84831e1893214f65f3132a9e4.tar.gz
gentoo-86155b599c5599a84831e1893214f65f3132a9e4.tar.bz2
gentoo-86155b599c5599a84831e1893214f65f3132a9e4.zip
dev-ros/image_cb_detector: Fix build in C++11 mode.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ros/image_cb_detector/files')
-rw-r--r--dev-ros/image_cb_detector/files/c11.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-ros/image_cb_detector/files/c11.patch b/dev-ros/image_cb_detector/files/c11.patch
new file mode 100644
index 000000000000..bddbce93725f
--- /dev/null
+++ b/dev-ros/image_cb_detector/files/c11.patch
@@ -0,0 +1,13 @@
+Index: image_cb_detector/src/rgbd_cb_detector_action.cpp
+===================================================================
+--- image_cb_detector.orig/src/rgbd_cb_detector_action.cpp
++++ image_cb_detector/src/rgbd_cb_detector_action.cpp
+@@ -143,7 +143,7 @@ public:
+ for(size_t i = 0; i< features.image_points.size(); i++){
+ geometry_msgs::Point pixel = features.image_points[i];
+ float depth = *(depth_ptr+width*(unsigned int)pixel.y+(unsigned int)pixel.x);
+- if ( isnan(depth) )
++ if ( std::isnan(depth) )
+ {
+ continue;
+ }