From: Mikko Rasa Date: Fri, 27 Sep 2019 00:05:07 +0000 (+0300) Subject: Add RemoveConstReference metaprogamming struct X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f635ee3173be05375cd7d5c7a8edfbfb61f70d60;p=libs%2Fcore.git Add RemoveConstReference metaprogamming struct It combines RemoveConst and RemoveReference but is much shorter --- 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;