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

Commit

Permalink
Merge pull request #825 from thrust/cuda-next-release
Browse files Browse the repository at this point in the history
 vector_base::clear is now implement with erase(begin(), end())
  • Loading branch information
jaredhoberock authored Aug 16, 2016
2 parents d4b5853 + 3951d73 commit f472e78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#######################################
# Thrust v1.8.3-1 #
# Thrust v1.8.3-2 #
#######################################

Summary
Expand All @@ -14,6 +14,7 @@ Bug Fixes
{min,max,minmax}_element can now accept raw device pointer with device execution policy
If C++11 support is enabled, functors do not have to inherit from thrust::unary_function/thrust::binary_function
anymore when using them with thrust::transform_iterator.
clear() operations on vector types no longer requires the element type to have a default constructor



Expand Down
2 changes: 1 addition & 1 deletion thrust/detail/vector_base.inl
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ template<typename T, typename Alloc>
void vector_base<T,Alloc>
::clear(void)
{
resize(0);
erase(begin(), end());
} // end vector_base::~vector_dev()

template<typename T, typename Alloc>
Expand Down
2 changes: 1 addition & 1 deletion thrust/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
* \brief The preprocessor macro \p THRUST_PATCH_NUMBER encodes the
* patch number of the Thrust library.
*/
#define THRUST_PATCH_NUMBER 1
#define THRUST_PATCH_NUMBER 2


// Declare these namespaces here for the purpose of Doxygenating them
Expand Down

0 comments on commit f472e78

Please sign in to comment.