diff --git a/modules/gpu/include/opencv2/gpu/device/functional.hpp b/modules/gpu/include/opencv2/gpu/device/functional.hpp index 96e96bded7..c498e717ca 100644 --- a/modules/gpu/include/opencv2/gpu/device/functional.hpp +++ b/modules/gpu/include/opencv2/gpu/device/functional.hpp @@ -43,7 +43,7 @@ #ifndef __OPENCV_GPU_FUNCTIONAL_HPP__ #define __OPENCV_GPU_FUNCTIONAL_HPP__ -#include +#include #include "saturate_cast.hpp" #include "vec_traits.hpp" #include "type_traits.hpp" @@ -52,9 +52,8 @@ namespace cv { namespace gpu { namespace device { // Function Objects - - using thrust::unary_function; - using thrust::binary_function; + template struct unary_function : public std::unary_function {}; + template struct binary_function : public std::binary_function {}; // Arithmetic Operations template struct plus : binary_function