diff --git a/libs/core/properties/include/hpx/properties/property.hpp b/libs/core/properties/include/hpx/properties/property.hpp index e47690aa08ae..f4db93448c6e 100644 --- a/libs/core/properties/include/hpx/properties/property.hpp +++ b/libs/core/properties/include/hpx/properties/property.hpp @@ -1,4 +1,5 @@ // Copyright (c) 2020 ETH Zurich +// Copyright (c) 2023-2024 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -22,7 +23,7 @@ namespace hpx::experimental { template friend constexpr HPX_FORCEINLINE auto tag_fallback_invoke( prefer_t, Tag tag, Tn&&... tn) - noexcept(noexcept(tag(HPX_FORWARD(Tn, tn)...))) + noexcept(hpx::functional::is_nothrow_tag_invocable_v) -> decltype(tag(HPX_FORWARD(Tn, tn)...)) // clang-format on {