Use nullptr rather than 0 for a null pointer
[folly.git] / folly / Foreach.h
index 50740f40dc1243c000bf27daeb5ac47a277eaa43..ae0e865d92340c82608f47fe1f87142f0d01ae48 100644 (file)
@@ -216,7 +216,7 @@ class HasLess {
   template <typename, typename> static BiggerThanChar test(...);
 
  public:
-  enum { value = sizeof(test<T, U>(0)) == 1 };
+  enum { value = sizeof(test<T, U>(nullptr)) == 1 };
 };
 
 /**