Skip to content

Commit 376a400

Browse files
dkolsen-pgialliepiper
authored andcommitted
Include <thrust/detail/memory_wrapper.h>, not <memory>
Yesterday "#include <memory>" was added to thrust/detail/allocator/allocator_traits.inl. That caused a regression when compiling with NVC++, breaking NVIDIA#1218. This fix changes that include to be "#include <thrust/detail/memory_wrapper.h>". (And it makes the same change to a different include of <memory> that I seem to have missed in my earlier commit.)
1 parent d409930 commit 376a400

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

thrust/allocate_unique.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <thrust/detail/allocator/allocator_traits.h>
1717

1818
#include <utility>
19-
#include <memory>
19+
#include <thrust/detail/memory_wrapper.h>
2020

2121
namespace thrust
2222
{

thrust/detail/allocator/allocator_traits.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <thrust/detail/type_deduction.h>
2424
#endif
2525

26-
#include <memory>
26+
#include <thrust/detail/memory_wrapper.h>
2727
#include <new>
2828

2929
namespace thrust

0 commit comments

Comments
 (0)