From 6a25f66abc0c7874fd4699d899d74ad9d0df1b6c Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Mon, 13 Jan 2025 11:17:46 +0100 Subject: [PATCH] MSVC --- thrust/thrust/optional.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thrust/thrust/optional.h b/thrust/thrust/optional.h index 82538576496..287a546178e 100644 --- a/thrust/thrust/optional.h +++ b/thrust/thrust/optional.h @@ -2008,7 +2008,9 @@ _CCCL_HOST_DEVICE auto optional_map_impl(Opt&& opt, F&& f) if (opt.has_value()) { detail::invoke(std::forward(f), *std::forward(opt)); + _CCCL_SUPPRESS_DEPRECATED_PUSH return make_optional(monostate{}); + _CCCL_SUPPRESS_DEPRECATED_POP } return optional(nullopt);