From c0485e32a320e17dd0634b2cc8b4dd8c4fdc65e0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 10 May 2019 21:03:14 -0700 Subject: [PATCH] Use hb_void_t<> the way it's supposed to be used --- src/hb-null.hh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hb-null.hh b/src/hb-null.hh index 725db50..674b4df 100644 --- a/src/hb-null.hh +++ b/src/hb-null.hh @@ -46,13 +46,13 @@ * https://stackoverflow.com/questions/7776448/sfinae-tried-with-bool-gives-compiler-error-template-argument-tvalue-invol */ -template +template struct _hb_null_size : hb_integral_constant {}; template -struct _hb_null_size> : hb_integral_constant {}; +struct _hb_null_size> : hb_integral_constant {}; template -using hb_null_size = _hb_null_size; +using hb_null_size = _hb_null_size; #define hb_null_size(T) hb_null_size::value /* These doesn't belong here, but since is copy/paste from above, put it here. */ @@ -60,12 +60,12 @@ using hb_null_size = _hb_null_size; /* hb_static_size (T) * Returns T::static_size if T::min_size is defined, or sizeof (T) otherwise. */ -template +template struct _hb_static_size : hb_integral_constant {}; template -struct _hb_static_size> : hb_integral_constant {}; +struct _hb_static_size> : hb_integral_constant {}; template -using hb_static_size = _hb_static_size; +using hb_static_size = _hb_static_size; #define hb_static_size(T) hb_static_size::value -- 2.7.4