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

Fix compilation error when a standard library type is wrapped in thrust::optional #1373

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

vuule
Copy link
Contributor

@vuule vuule commented Jan 7, 2021

Declaring a thrust::optional<std::string> causes a following error:
call of overloaded ‘addressof(std::__cxx11::basic_string<char>&)’ is ambiguous

This is because both thrust and std have addressof (std::addressof is found through ADL).

The patch is to simply explicitly use thrust::addressof in this context. Verified locally to fix the issue.

@alliepiper
Copy link
Collaborator

Looks good to me, thanks for the patch!

@alliepiper
Copy link
Collaborator

run tests

@alliepiper alliepiper added this to the 1.13.0 milestone Jan 8, 2021
@alliepiper alliepiper modified the milestones: 1.13.0, 1.12.0 Jan 8, 2021
@alliepiper alliepiper added the testing: internal ci in progress Currently testing on internal NVIDIA CI (DVS). label Jan 11, 2021
@alliepiper
Copy link
Collaborator

DVS CL: 29489327

@alliepiper alliepiper added testing: gpuCI in progress Started gpuCI testing. testing: gpuCI passed Passed gpuCI testing. and removed testing: gpuCI in progress Started gpuCI testing. labels Jan 12, 2021
@alliepiper alliepiper added testing: internal ci passed Passed internal NVIDIA CI (DVS). and removed testing: internal ci in progress Currently testing on internal NVIDIA CI (DVS). labels Jan 21, 2021
@alliepiper alliepiper closed this Jan 21, 2021
@alliepiper alliepiper reopened this Jan 21, 2021
@alliepiper alliepiper merged commit e3ed788 into NVIDIA:main Jan 21, 2021
@vuule vuule deleted the bug-optional-adl branch January 21, 2021 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testing: gpuCI passed Passed gpuCI testing. testing: internal ci passed Passed internal NVIDIA CI (DVS).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants