-
Notifications
You must be signed in to change notification settings - Fork 89
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
Incorrect type signature code #4
Comments
Thanks for the report! Since writing that code I learned a better technique for pack expansion but I forgot to port it to jni.hpp. |
Yay, thanks for prompt fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
The code in
jni.hpp/include/jni/type_signature.hpp
Lines 43 to 56 in 26cc577
It passes argument pack expansion as arguments to the function DoNothingWith(). Per standard compiler is free to arrange function arguments computation in any order - and gcc and clang disagree here. Clang computes arguments left to right, producing correct signature; android gcc 4.9 computes them right to left, producing completely invalid function signature.
You can verify it here
The text was updated successfully, but these errors were encountered: