From 8df488f99e17b6a72a68c097b13463b279458df8 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Mon, 13 Jan 2025 14:22:42 +0100 Subject: [PATCH] MSVC workaround --- thrust/thrust/optional.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thrust/thrust/optional.h b/thrust/thrust/optional.h index 287a546178e..83d50bac58e 100644 --- a/thrust/thrust/optional.h +++ b/thrust/thrust/optional.h @@ -2005,13 +2005,13 @@ template ::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), *std::forward(opt)); - _CCCL_SUPPRESS_DEPRECATED_PUSH return make_optional(monostate{}); - _CCCL_SUPPRESS_DEPRECATED_POP } + _CCCL_SUPPRESS_DEPRECATED_POP return optional(nullopt); }