Include <thrust/detail/memory_wrapper.h>, not <memory>
Redo an earlier fix, which was somehow lost.  Fix
MODIFY
thrust/allocate_unique.h
thrust/allocate_unique.h
#include <thrust/detail/allocator/allocator_traits.h>
#include <utility>
-#include <memory>
+#include <thrust/detail/memory_wrapper.h>
namespace thrust
{

MODIFY
thrust/detail/allocator/allocator_traits.inl
thrust/detail/allocator/allocator_traits.inl
#include <thrust/detail/type_deduction.h>
#endif
-#include <memory>
+#include <thrust/detail/memory_wrapper.h>
#include <new>
namespace thrust

Include <thrust/detail/memory_wrapper.h>, not <memory>

Redo an earlier fix, which was somehow lost.  Fix #1236