Skip to content

Commit

Permalink
MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 13, 2025
1 parent 7d64f88 commit 6a25f66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thrust/thrust/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,9 @@ _CCCL_HOST_DEVICE auto optional_map_impl(Opt&& opt, F&& f)
if (opt.has_value())
{
detail::invoke(std::forward<F>(f), *std::forward<Opt>(opt));
_CCCL_SUPPRESS_DEPRECATED_PUSH
return make_optional(monostate{});
_CCCL_SUPPRESS_DEPRECATED_POP
}

return optional<monostate>(nullopt);
Expand Down

0 comments on commit 6a25f66

Please sign in to comment.