Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
explicitly use thrust::addressof to avoid ADL issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vuule authored Jan 7, 2021
1 parent 4fd1b54 commit 9bac106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thrust/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ template <class T> struct optional_operations_base : optional_storage_base<T> {
template <class... Args>
__host__ __device__
void construct(Args &&... args) noexcept {
new (addressof(this->m_value)) T(std::forward<Args>(args)...);
new (thrust::addressof(this->m_value)) T(std::forward<Args>(args)...);
this->m_has_value = true;
}

Expand Down

0 comments on commit 9bac106

Please sign in to comment.