diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 02dd24099..8d72cbcd0 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 cdd97d28d..4675c515f 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