Skip to content

Commit

Permalink
fixed compilation
Browse files Browse the repository at this point in the history
additional "typename" disambiguifiers  are required by some compilers
  • Loading branch information
chacha21 committed Dec 26, 2023
1 parent f19a582 commit b330b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cudev/include/opencv2/cudev/functional/functional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ template <typename T> struct magnitude_func : binary_function<T, T, typename fun

template <typename T2> struct magnitude_interleaved_func : unary_function<T2, typename VecTraits<T2>::elem_type>
{
typedef VecTraits<T2>::elem_type T;
typedef typename VecTraits<T2>::elem_type T;
__device__ __forceinline__ typename T operator ()(typename TypeTraits<T2>::parameter_type ab) const
{
sqrt_func<typename functional_detail::FloatType<T>::type> f;
Expand All @@ -639,7 +639,7 @@ template <typename T> struct magnitude_sqr_func : binary_function<T, T, typename

template <typename T2> struct magnitude_sqr_interleaved_func : unary_function<T2, typename VecTraits<T2>::elem_type>
{
typedef VecTraits<T2>::elem_type T;
typedef typename VecTraits<T2>::elem_type T;
__device__ __forceinline__ typename T operator ()(typename TypeTraits<T2>::parameter_type ab) const
{
return ab.x * ab.x + ab.y * ab.y;
Expand Down

0 comments on commit b330b6c

Please sign in to comment.