Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Include <thrust/detail/memory_wrapper.h>, not <memory>
Browse files Browse the repository at this point in the history
Yesterday "#include <memory>" was added to
thrust/detail/allocator/allocator_traits.inl.  That caused a regression
when compiling with NVC++, breaking #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.)
  • Loading branch information
dkolsen-pgi committed Jul 10, 2020
1 parent d409930 commit e1681ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thrust/allocate_unique.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <thrust/detail/allocator/allocator_traits.h>

#include <utility>
#include <memory>
#include <thrust/detail/memory_wrapper.h>

namespace thrust
{
Expand Down
2 changes: 1 addition & 1 deletion thrust/detail/allocator/allocator_traits.inl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <thrust/detail/type_deduction.h>
#endif

#include <memory>
#include <thrust/detail/memory_wrapper.h>
#include <new>

namespace thrust
Expand Down

0 comments on commit e1681ff

Please sign in to comment.