Work around execution space warning on GCC 10.
Fixes
Bug
MODIFY
thrust/system/cuda/detail/future.inl
thrust/system/cuda/detail/future.inl
@@ -152,7 +152,7 @@ struct stream_deleter final
struct stream_conditional_deleter final
{
private:
- bool const cond_;
+ bool cond_;
public:
__host__
@@ -205,8 +205,13 @@ public:
__thrust_exec_check_disable__
unique_stream(unique_stream const&) = delete;
+
+ // GCC 10 complains if this is defaulted. See NVIDIA/thrust#1269.
__thrust_exec_check_disable__
- unique_stream(unique_stream&&) = default;
+ __host__ unique_stream(unique_stream &&o) noexcept
+ : handle_(std::move(o.handle_))
+ {}
+
__thrust_exec_check_disable__
unique_stream& operator=(unique_stream const&) = delete;
__thrust_exec_check_disable__

Work around execution space warning on GCC 10.

Fixes #1269
Bug 200636836