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

Commit 42fc4c9

Browse files
committed
WAR collisions between the functor used by remove and the functor in internal_functional.h
--HG-- branch : 1.2.1
1 parent f9bb8ca commit 42fc4c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

thrust/detail/remove.inl

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ namespace detail
3030
{
3131

3232
template<typename T>
33-
struct equal_to_value
33+
struct equal_to_value_
3434
{
35-
equal_to_value(const T &v):value(v){}
35+
equal_to_value_(const T &v):value(v){}
3636

3737
__host__ __device__
3838
inline bool operator()(const T &x) { return x == value; }
3939

4040
const T value;
41-
}; // end equal_to_value
41+
}; // end equal_to_value_
4242

4343
} // end detail
4444

@@ -48,7 +48,7 @@ template<typename ForwardIterator,
4848
ForwardIterator last,
4949
const T &value)
5050
{
51-
detail::equal_to_value<T> pred(value);
51+
detail::equal_to_value_<T> pred(value);
5252

5353
return thrust::remove_if(first, last, pred);
5454
} // end remove()
@@ -61,7 +61,7 @@ template<typename InputIterator,
6161
OutputIterator result,
6262
const T &value)
6363
{
64-
detail::equal_to_value<T> pred(value);
64+
detail::equal_to_value_<T> pred(value);
6565

6666
return thrust::remove_copy_if(first, last, result, pred);
6767
} // end remove_copy()

0 commit comments

Comments
 (0)