From f635ee3173be05375cd7d5c7a8edfbfb61f70d60 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 27 Sep 2019 03:05:07 +0300 Subject: [PATCH] Add RemoveConstReference metaprogamming struct It combines RemoveConst and RemoveReference but is much shorter --- source/core/meta.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/core/meta.h b/source/core/meta.h index d6ca359..8015f42 100644 --- a/source/core/meta.h +++ b/source/core/meta.h @@ -23,6 +23,11 @@ struct RemoveReference { typedef T Type; }; +template +struct RemoveConstReference +{ typedef typename RemoveConst::Type>::Type Type; }; + + template struct EnableIf; -- 2.45.2