Remove the using clauses in complex.h. Instead move them to thrust::detail::complex.