From caa3f92e91062ff78b657aec23569b099de48640 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 10 May 2019 20:43:51 -0700 Subject: [PATCH] [meta] void_tt -> void_t --- src/hb-meta.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hb-meta.hh b/src/hb-meta.hh index b8964c0..4cdb77d 100644 --- a/src/hb-meta.hh +++ b/src/hb-meta.hh @@ -37,10 +37,9 @@ /* Void! For when we need a expression-type of void. */ struct hb_empty_t {}; -/* Void meta-function ala std::void_t - * https://en.cppreference.com/w/cpp/types/void_t */ -template struct _hb_void_tt { typedef void type; }; -template using hb_void_tt = typename _hb_void_tt::type; +/* https://en.cppreference.com/w/cpp/types/void_t */ +template struct _hb_void_t { typedef void type; }; +template using hb_void_t = typename _hb_void_t::type; template struct _hb_head_tt { typedef Head type; }; template using hb_head_tt = typename _hb_head_tt::type; @@ -67,7 +66,7 @@ template struct hb_is_same : hb_true_type {}; #define HB_RETURN(Ret, E) -> hb_head_tt { return (E); } #define HB_AUTO_RETURN(E) -> decltype ((E)) { return (E); } -#define HB_VOID_RETURN(E) -> hb_void_tt { (E); } +#define HB_VOID_RETURN(E) -> hb_void_t { (E); } template struct hb_priority : hb_priority {}; template <> struct hb_priority<0> {}; -- 2.7.4