[iter] Tweak SFINAE again
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 3 Apr 2019 22:31:53 +0000 (15:31 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 3 Apr 2019 22:31:53 +0000 (15:31 -0700)
Don't think we need hb_is_same().

src/hb-iter.hh

index afb0382..6f8e7ec 100644 (file)
@@ -212,7 +212,7 @@ struct hb_is_iterable
   static hb_false_t test (...);
 
   public:
-  enum { value = hb_is_same (decltype (test<T> (0)), hb_true_t) };
+  enum { value = decltype (test<T> (0))::value };
 };
 #define hb_is_iterable(Iterable) hb_is_iterable<Iterable>::value