Skip to content

Commit

Permalink
MSVC workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 13, 2025
1 parent 6a25f66 commit 8df488f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrust/thrust/optional.h
Original file line number Diff line number Diff line change
Expand Up @@ -2005,13 +2005,13 @@ template <class Opt,
detail::enable_if_t<std::is_void<Ret>::value>* = nullptr>
_CCCL_HOST_DEVICE auto optional_map_impl(Opt&& opt, F&& f)
{
_CCCL_SUPPRESS_DEPRECATED_PUSH
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
}
_CCCL_SUPPRESS_DEPRECATED_POP

return optional<monostate>(nullopt);
}
Expand Down

0 comments on commit 8df488f

Please sign in to comment.