diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 02dd240993c0ef4c3c729de65a596cfd922e4263..8d72cbcd0060f6d411fc5d6143a86b4ac0cf286f 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -158,11 +158,11 @@ template struct _hb_is_iterable { enum { value = false }; }; template -struct _hb_is_iterable ().iter ())> > +struct _hb_is_iterable ().iter ())> > { enum { value = true }; }; + template struct hb_is_iterable { enum { value = _hb_is_iterable::value }; }; - #define hb_is_iterable(Iterable) hb_is_iterable::value diff --git a/src/hb-null.hh b/src/hb-null.hh index cdd97d28d42ec09b6e72e087275cd156d3f2337f..4675c515fdc3337b80a5679a2de2e34a836bacae 100644 --- a/src/hb-null.hh +++ b/src/hb-null.hh @@ -50,7 +50,7 @@ template struct _hb_null_size { enum { value = sizeof (T) }; }; template -struct _hb_null_size > +struct _hb_null_size > { enum { value = T::null_size }; }; template @@ -67,7 +67,7 @@ template struct _hb_static_size { enum { value = sizeof (T) }; }; template -struct _hb_static_size > +struct _hb_static_size > { enum { value = T::static_size }; }; template @@ -84,10 +84,10 @@ template struct _hb_assign { static inline void value (T &o, const V v) { o = v; } }; template -struct _hb_assign > +struct _hb_assign > { static inline void value (T &o, const V v) { o.set (v); } }; template -struct _hb_assign > +struct _hb_assign > { static inline void value (T &o, const T v) { o = v; } }; template