diff --git a/thrust/detail/type_traits.h b/thrust/detail/type_traits.h index c663cffb0..612551a5d 100644 --- a/thrust/detail/type_traits.h +++ b/thrust/detail/type_traits.h @@ -131,7 +131,7 @@ template struct is_pod || __is_pod(T) #elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC // only use the intrinsic for >= 4.3 -#if (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3) +#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 403) || __is_pod(T) #endif // GCC VERSION #endif // THRUST_HOST_COMPILER