Function-Tools: thus change behaviour for member-pointer-to-function

...to not include the "this" argument anymore
This commit is contained in:
Fischlurch 2017-03-19 00:40:10 +01:00
parent dfea57fd02
commit f19fabfa3a

View file

@ -63,25 +63,19 @@ using std::tuple;
namespace lib {
namespace meta {
template< typename RET, class CLASS
, typename...ARGS
>
struct _Fun<RET (CLASS::*) (ARGS...) const>
template<class C, typename RET, typename...ARGS>
struct _Fun<RET (C::*) (ARGS...)>
{
typedef RET Ret;
typedef Types<CLASS* const, ARGS...> Args;
typedef RET Sig(CLASS* const, ARGS...);
};
template< typename RET, class CLASS
, typename...ARGS
>
struct _Fun<RET (CLASS::*) (ARGS...) >
{
typedef RET Ret;
typedef Types<CLASS* const, ARGS...> Args;
typedef RET Sig(CLASS* const, ARGS...);
using Ret = RET;
using Args = Types<ARGS...>;
using Sig = RET(ARGS...);
};
template<class C, typename RET, typename...ARGS>
struct _Fun<RET (C::*) (ARGS...) const>
: _Fun<RET (C::*) (ARGS...)>
{ };
}}//namespace lib::meta
////////////////############# Investigation of implementation variants