Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 13, 2025
1 parent 6a5b631 commit 64025fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions thrust/thrust/async/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ struct transform_fn final
)

template <typename... Args>
_CCCL_NODISCARD _CCCL_HOST
CCCL_DEPRECATED auto operator()(Args&&... args) const
CCCL_DEPRECATED _CCCL_NODISCARD _CCCL_HOST
auto operator()(Args&&... args) const
THRUST_RETURNS(
call(THRUST_FWD(args)...)
)
Expand Down
12 changes: 6 additions & 6 deletions thrust/thrust/detail/type_deduction.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
} \
/**/

#define _THRUST_RETURNS_SUPPRESS_DEPRECATIONS(...) \
noexcept(noexcept(__VA_ARGS__)) \
{ \
_CCCL_SUPPRESS_DEPRECATED_PUSH \
return (__VA_ARGS__); \
_CCCL_SUPPRESS_DEPRECATED_POP \
#define _THRUST_RETURNS_SUPPRESS_DEPRECATIONS(...) \
_CCCL_SUPPRESS_DEPRECATED_PUSH noexcept(noexcept(__VA_ARGS__)) _CCCL_SUPPRESS_DEPRECATED_POP \
{ \
_CCCL_SUPPRESS_DEPRECATED_PUSH \
return (__VA_ARGS__); \
_CCCL_SUPPRESS_DEPRECATED_POP \
}

/// \def THRUST_DECLTYPE_RETURNS(...)
Expand Down

0 comments on commit 64025fc

Please sign in to comment.