Skip to content

Commit e62b315

Browse files
committed
issue #10...
1 parent 9fd3885 commit e62b315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hydra/detail/FunctionArgument.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct FunctionArgument
7979

8080
template<typename T>
8181
__hydra_host__ __hydra_device__
82-
typename std::enable_if< std::is_convertible<T, value_type>::value,
82+
typename std::enable_if< std::is_convertible<T, value_type>::value && (!detail::is_function_argument<T>::value),
8383
FunctionArgument<name_type, value_type>&>::type
8484
operator=(T other)
8585
{
@@ -89,7 +89,7 @@ struct FunctionArgument
8989

9090
template<typename T>
9191
__hydra_host__ __hydra_device__
92-
typename std::enable_if< std::is_convertible<T, value_type>::value,
92+
typename std::enable_if< std::is_convertible<T, value_type>::value && (!detail::is_function_argument<T>::value),
9393
FunctionArgument<name_type, value_type>&>::type
9494
operator=(hydra_thrust::device_reference<T> const& other)
9595
{

0 commit comments

Comments
 (0)