-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static_assert failed: 'thunked function is not a member function' #5
Comments
Can you give a short example that reproduces the error? |
i think, NOT SURE, that in previous versions of "windows_thunks" i could compile it. ps: |
Just remove the "WINAPI" macro and everything should work. For x86-64 this problem does not exist, as there is only one calling convention used by msvc (fastcall) cf. https://en.wikipedia.org/wiki/X86_calling_conventions (vectorcall must be specified explicitly) |
wont this affect the mechanism of exception handling when i pass this function to "AddVectoredExceptionHandler"? |
The synthesized static function returned by (When you comment out the static_assert from above and run the code with |
the function I'm trying to thunk is a WINAPI.
in x64, it compiles fine but in x86 the static_assert fails:
I'm using VS2022 (v143) and c++17
The text was updated successfully, but these errors were encountered: