没有函数模板“spoof_call”的实例与参数列表匹配

问题描述

我不太明白这个错误以及如何修复它。

这是模板的代码


template <typename Ret,typename... Args>
static inline auto spoof_call(
    const void* trampoline,Ret(*fn)(Args...),Args... args
) -> Ret
{
    struct shell_params
    {
        const void* trampoline;
        void* function;
        void* rdx;
    };

    shell_params p{ trampoline,reinterpret_cast<void*>(fn) };
    using mapper = detail::argument_remapper<sizeof...(Args),void>;
    return mapper::template do_call<Ret,Args...>((const void*)&detail::_spoofer_stub,&p,args...);
}

这是我遇到错误代码

if (!first) {
        X = (float)spoof_call(game_rbx_jmp,GetSystemMetrics,SM_CXSCREEN);
        Y = (float)spoof_call(game_rbx_jmp,SM_CYSCREEN);
        width = (float)spoof_call(game_rbx_jmp,SM_CXSCREEN); // width
        height = (float)spoof_call(game_rbx_jmp,SM_CYSCREEN); // height
        first = true;
    }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)