-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate thrust::optional #3307
base: main
Are you sure you want to change the base?
Conversation
e7b8e50
to
d82c06c
Compare
@@ -59,11 +61,10 @@ THRUST_NAMESPACE_BEGIN | |||
#ifndef THRUST_MONOSTATE_INPLACE_MUTEX | |||
# define THRUST_MONOSTATE_INPLACE_MUTEX | |||
/// \brief Used to represent an optional with no data; essentially a bool | |||
class monostate | |||
{}; | |||
class CCCL_DEPRECATED monostate{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use CCCL_DEPRECATED_BECAUSE("Use cuda::std::monostate instead")
template <typename X, typename Deleter> | ||
_CCCL_HOST optional<unique_stream> try_acquire_stream(int, std::unique_ptr<X, Deleter>&) noexcept | ||
template <typename X, typename Deleter> | ||
_CCCL_HOST optional<unique_stream> try_acquire_stream(int, std::unique_ptr<X, Deleter>&) noexcept |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather just use cuda::std::optional
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a change for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I tried, but you need C++17 for that :D. Also, this PR will be backported to 2.8 where we only have C++11 as well.
Fixes: #3306