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

c++: except+ behavior is broken for functions returning noncopyable types, like unique_ptr #2874

Open
fried opened this Issue Mar 2, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@fried
Copy link

fried commented Mar 2, 2019

In the generated C++ code we try to copy by value in the exception handling. adding a std::move() would resolve the issue. But that would require C++11

@scoder

This comment has been minimized.

Copy link
Contributor

scoder commented Mar 2, 2019

It's generally ok if the C/C++ code fails to compile with a reasonable error message if users rely on features that the C/C++ compiler does not support yet, as long as it does not impact users who do not rely on these features. PR welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.