Skip to content
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

Fix RPC argument order #1

Merged
merged 1 commit into from
Jul 15, 2019
Merged

Conversation

LubosD
Copy link
Contributor

@LubosD LubosD commented Jul 15, 2019

I assume RPC methods such as getStringProperty() work OK for you, but they don't work for me under GCC 8.3.0, since the order of arguments passed to the lambdas in AnyRpcServer.cpp gets reversed.

It seems to be triggered by how you deal with parameter packs and indices.

After this change, the argument order is OK for me.

@faaxm
Copy link
Owner

faaxm commented Jul 15, 2019

Indeed, the argument order is fine on my machine, but I was also only using clang.
I now wrote some unit tests for the AnyRPC utils and - just like you observed - they fail on gcc!

Thank you so much for fixing this 👍

@faaxm faaxm merged commit 7ba1955 into faaxm:master Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants