diff --git a/src/hb-meta.hh b/src/hb-meta.hh index d995607f4..e5eae564d 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -47,9 +47,9 @@ template using hb_head_tt = typename _hb_head_tt::type; /* Bool! For when we need to evaluate type-dependent expressions * in a template argument. */ -template struct hb_bool_tt { static constexpr bool value = b; }; -typedef hb_bool_tt hb_true_t; -typedef hb_bool_tt hb_false_t; +template struct hb_bool_constant { static constexpr bool value = b; }; +typedef hb_bool_constant hb_true_t; +typedef hb_bool_constant hb_false_t; /* Basic type SFINAE. */ diff --git a/src/hb-null.hh b/src/hb-null.hh index 562c4abc0..fea881af6 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