From fb5614ae2b1c41eaeeffd911bf66dda66659db3c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 8 Sep 2017 14:19:28 +1000 Subject: [PATCH] types/traits: add remove_member_const --- types/traits.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/types/traits.hpp b/types/traits.hpp index 0ca8b96d..738522a6 100644 --- a/types/traits.hpp +++ b/types/traits.hpp @@ -189,15 +189,17 @@ struct remove_member_const { //----------------------------------------------------------------------------- -template -struct remove_noexcept { - using type = ResultT(ClassT::*)(Args...); +template +struct remove_member_const { + using type = ReturnT(ClassT::*const)(Args...); }; //----------------------------------------------------------------------------- -template -using remove_noexcept_t = typename remove_noexcept::type; +template +struct remove_member_const { + using type = ReturnT(ClassT::*)(Args...); +}; ///////////////////////////////////////////////////////////////////////////////