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 lib {
|
||||||
namespace meta {
|
namespace meta {
|
||||||
|
|
||||||
template< typename RET, class CLASS
|
template<class C, typename RET, typename...ARGS>
|
||||||
, typename...ARGS
|
struct _Fun<RET (C::*) (ARGS...)>
|
||||||
>
|
|
||||||
struct _Fun<RET (CLASS::*) (ARGS...) const>
|
|
||||||
{
|
{
|
||||||
typedef RET Ret;
|
using Ret = RET;
|
||||||
typedef Types<CLASS* const, ARGS...> Args;
|
using Args = Types<ARGS...>;
|
||||||
typedef RET Sig(CLASS* const, ARGS...);
|
using Sig = RET(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...);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<class C, typename RET, typename...ARGS>
|
||||||
|
struct _Fun<RET (C::*) (ARGS...) const>
|
||||||
|
: _Fun<RET (C::*) (ARGS...)>
|
||||||
|
{ };
|
||||||
|
|
||||||
}}//namespace lib::meta
|
}}//namespace lib::meta
|
||||||
////////////////############# Investigation of implementation variants
|
////////////////############# Investigation of implementation variants
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue