Function-Tools: thus change behaviour for member-pointer-to-function
...to not include the "this" argument anymore
This commit is contained in:
parent
dfea57fd02
commit
f19fabfa3a
1 changed files with 10 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue