diff --git a/.clang-tidy b/.clang-tidy index f0b6291f0d5..e7255b3c4e6 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -45,7 +45,6 @@ Checks: - '-bugprone-unintended-char-ostream-output' - '-bugprone-casting-through-void' - '-bugprone-integer-division' - - '-bugprone-move-forwarding-reference' - '-bugprone-pointer-arithmetic-on-polymorphic-object' - '-bugprone-argument-comment' # This is just noise diff --git a/thrust/thrust/detail/allocator_aware_execution_policy.h b/thrust/thrust/detail/allocator_aware_execution_policy.h index bf0dfd21bb7..d2d5d511763 100644 --- a/thrust/thrust/detail/allocator_aware_execution_policy.h +++ b/thrust/thrust/detail/allocator_aware_execution_policy.h @@ -18,7 +18,7 @@ #include #include #include -#include +#include THRUST_NAMESPACE_BEGIN @@ -68,14 +68,11 @@ struct allocator_aware_execution_policy return typename execute_with_allocator_type::type(alloc); } - // just the rvalue overload - // perfect forwarding doesn't help, because a const reference has to be turned - // into a value by copying for the purpose of storing it in execute_with_allocator _CCCL_EXEC_CHECK_DISABLE template >* = nullptr> _CCCL_HOST_DEVICE typename execute_with_allocator_type::type operator()(Allocator&& alloc) const { - return typename execute_with_allocator_type::type(::cuda::std::move(alloc)); + return typename execute_with_allocator_type::type(::cuda::std::forward(alloc)); } }; } // end namespace detail