kwilcz / Antario

Clean base/cheat made for CS:GO.
MIT License
131 stars 34 forks source link

Compile Error #30

Closed 797876 closed 6 years ago

797876 commented 6 years ago

I am not able to compile properly (VS2017, v141)

template<unsigned int IIdx, typename TRet, typename ... TArgs>
    static auto CallVFunc(void* thisptr, TArgs ... argList) -> TRet
    {
        using Fn = TRet(__thiscall*)(void*, decltype(argList)...); //19
        return (*static_cast<Fn**>(thisptr))[IIdx](thisptr, argList...); //20
    }
1>c:\users\797876\workenv\__cheating\antario-master\antario-master\antario\utils\utils.h(19): error C2217: '...' requires '__cdecl'
1>c:\users\797876\workenv\__cheating\antario-master\antario-master\antario\utils\utils.h(20): error C2198: 'Fn': too few arguments for call

The error doesn't make any sense to me, maybe you can share some light.

Monsterxsync commented 6 years ago

Are you using latest version of c++?

797876 commented 6 years ago

Yes

kwilcz commented 6 years ago

Update your visual studio to the latest version, thats the compiler bug that detects semicolon when its not there.

797876 commented 6 years ago

I am updating. I hope that fixes it.

797876 commented 6 years ago

Thanks alot, updating to the newest version, and then retargeting the solution fioxed the error!