微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决没有函数模板“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 举报,一经查实,本站将立刻删除。