mp: Add support for const member function pointers to FunctionInfo
This commit is contained in:
parent
b1bad4b5cc
commit
163b67bf1f
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,13 @@ struct FunctionInfo<R(C::*)(Args...)> : public FunctionInfo<R(Args...)>
|
||||||
using class_type = C;
|
using class_type = C;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Partial specialization for const member function pointers.
|
||||||
|
template <typename C, typename R, typename... Args>
|
||||||
|
struct FunctionInfo<R(C::*)(Args...) const> : public FunctionInfo<R(Args...)>
|
||||||
|
{
|
||||||
|
using class_type = C;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper template for retrieving the type of a function parameter.
|
* Helper template for retrieving the type of a function parameter.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue