mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-08 16:10:05 +01:00
mp: Add support for const member function pointers to FunctionInfo
This commit is contained in:
parent
b1bad4b5cc
commit
163b67bf1f
@ -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.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user