Permalink
Browse files

Call uninitialized_copy through contiguous_storage in temporary_array…

…'s constructor instead of thrust::copy.
  • Loading branch information...
1 parent cb416da commit a17449f682f1e8a3157dc344cc358ae1bc58cf93 @jaredhoberock committed Aug 10, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 thrust/detail/temporary_array.inl
@@ -118,8 +118,7 @@ template<typename T, typename System>
{
super_t::allocate(thrust::distance(system,first,last));
- // XXX this copy should actually be copy construct via allocator
- thrust::copy(system, first, last, super_t::begin());
+ super_t::uninitialized_copy(first, last, super_t::begin());
} // end temporary_array::temporary_array()
@@ -134,8 +133,7 @@ template<typename T, typename System>
{
super_t::allocate(thrust::distance(input_system,first,last));
- // XXX this copy should actually be copy construct via allocator
- thrust::detail::two_system_copy(input_system, system, first, last, super_t::begin());
+ super_t::uninitialized_copy(input_system, first, last, super_t::begin());
} // end temporary_array::temporary_array()

0 comments on commit a17449f

Please sign in to comment.