From 38e3a8bd531ef3d35ca0fbcfad09db3f83345038 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 10 May 2019 20:03:14 -0700 Subject: [PATCH] [meta] bool_tt -> bool_constant --- src/hb-meta.hh | 6 +++--- src/hb-null.hh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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