mp: Add support for const member function pointers to FunctionInfo

This commit is contained in:
MerryMage 2016-12-23 11:32:12 +00:00
parent b1bad4b5cc
commit 163b67bf1f

View file

@ -48,6 +48,13 @@ struct FunctionInfo<R(C::*)(Args...)> : public FunctionInfo<R(Args...)>
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.
*