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

Deserialization of tuples does not work on g++11 #23

Open
mspertus opened this issue May 29, 2023 · 0 comments
Open

Deserialization of tuples does not work on g++11 #23

mspertus opened this issue May 29, 2023 · 0 comments

Comments

@mspertus
Copy link

It looks like tuple deserialization runs in a decltype(auto) bug in g++-11 as shown in this godbolt based on alpaca::detail::get.

A workaround seems to be to change the return type of alpaca::detail::get from decltype(auto) to auto & and change the bare return statements (that should never be call) to return a dummy int &. While ugly, since Since g++-11 is installed by default on Ubuntu 22.04 this is probably worth putting in the workaround.

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

No branches or pull requests

1 participant