From 9bac1061497f471226c2ad76fc164153e674e106 Mon Sep 17 00:00:00 2001 From: Vukasin Milovanovic Date: Thu, 7 Jan 2021 11:10:55 -0800 Subject: [PATCH] explicitly use thrust::addressof to avoid ADL issues --- thrust/optional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrust/optional.h b/thrust/optional.h index 133deab56..62e9cd182 100644 --- a/thrust/optional.h +++ b/thrust/optional.h @@ -491,7 +491,7 @@ template struct optional_operations_base : optional_storage_base { template __host__ __device__ void construct(Args &&... args) noexcept { - new (addressof(this->m_value)) T(std::forward(args)...); + new (thrust::addressof(this->m_value)) T(std::forward(args)...); this->m_has_value = true; }