deleted thrust header
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 5 Oct 2012 14:06:46 +0000 (18:06 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Fri, 5 Oct 2012 14:06:46 +0000 (18:06 +0400)
modules/gpu/include/opencv2/gpu/device/functional.hpp

index 96e96bd..c498e71 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_GPU_FUNCTIONAL_HPP__\r
 #define __OPENCV_GPU_FUNCTIONAL_HPP__\r
 \r
-#include <thrust/functional.h>\r
+#include <functional>\r
 #include "saturate_cast.hpp"\r
 #include "vec_traits.hpp"\r
 #include "type_traits.hpp"\r
@@ -52,9 +52,8 @@
 namespace cv { namespace gpu { namespace device\r
 {\r
     // Function Objects\r
-\r
-    using thrust::unary_function;\r
-    using thrust::binary_function;\r
+    template<typename Argument, typename Result> struct unary_function : public std::unary_function<Argument, Result> {};\r
+    template<typename Argument1, typename Argument2, typename Result> struct binary_function : public std::binary_function<Argument1, Argument2, Result> {};\r
 \r
     // Arithmetic Operations\r
     template <typename T> struct plus : binary_function<T, T, T>\r