 #if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ >= 2) || HIP_VERSION >= 402)
 THRUST_OPTIONAL_CPP11_CONSTEXPR_LESS
 #endif
-bool less< tuple<size_t, complex<double>> >::operator() (
-    const tuple<size_t, complex<double>>& lhs, const tuple<size_t, complex<double>>& rhs) const {
+bool thrust::less< thrust::tuple<size_t, complex<double>> >::operator() (
+    const thrust::tuple<size_t, complex<double>>& lhs, const thrust::tuple<size_t, complex<double>>& rhs) const {
 
     return _tuple_less<complex<double>>(lhs, rhs);
 }

#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ >= 2) || HIP_VERSION >= 402)
THRUST_OPTIONAL_CPP11_CONSTEXPR_LESS
#endif
bool less< tuple<size_t, float> >::operator() (
    const tuple<size_t, float>& lhs, const tuple<size_t, float>& rhs) const {

    return _tuple_less<float>(lhs, rhs);
}

#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11 && __CUDACC_VER_MINOR__ >= 2) || HIP_VERSION >= 402)
THRUST_OPTIONAL_CPP11_CONSTEXPR_LESS
#endif
bool thrust::less<double>::operator() (
    const double& lhs, const double& rhs) const {

    return _real_less<double>(lhs, rhs);
