fix build on Jetson TX1 and TX2
authorTomoaki Teshima <tomoaki.teshima@gmail.com>
Thu, 18 Jun 2020 22:56:37 +0000 (07:56 +0900)
committerTomoaki Teshima <tomoaki.teshima@gmail.com>
Thu, 18 Jun 2020 22:56:37 +0000 (07:56 +0900)
  * enable_if_t is a c++14 feature

modules/cudaoptflow/src/cuda/tvl1flow.cu

index 2688e05..a84b9a3 100644 (file)
@@ -154,8 +154,7 @@ namespace tvl1flow
     };
 
     template <
-        typename T,
-        typename = std::enable_if_t<std::is_base_of<SrcTex, T>::value>
+        typename T
     >
     __global__ void warpBackwardKernel(
         const PtrStepSzf I0, const T src, const PtrStepf u1, const PtrStepf u2,