fix-cuda-10.patch 422 B

1234567891011
  1. --- a/absl/types/compare.h (index)
  2. +++ b/absl/types/compare.h (working tree)
  3. @@ -69,7 +69,7 @@ using value_type = int8_t;
  4. class OnlyLiteralZero {
  5. public:
  6. -#if ABSL_HAVE_ATTRIBUTE(enable_if)
  7. +#if ABSL_HAVE_ATTRIBUTE(enable_if) && !defined(__CUDACC__)
  8. // On clang, we can avoid triggering modernize-use-nullptr by only enabling
  9. // this overload when the value is a compile time integer constant equal to 0.
  10. //