-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
Can't pass nil for smart pointers like std::shared_ptr #1629
Comments
@Smertig Ever noticed this behavior change or I am missing something? |
@deadlocklogic I worked with this library too long ago, don't remember anything. Sorry. |
You can't pass Note that you can use
See also #1592 (comment) AFAICT the use of |
@Spacechild1 I had an old codebase using |
Ah, you're right! I just tested with 3.3.1. It works as long as you explicitly pass
If sol2 used to also accept |
Why we can't pass
nil
tostd::shared_ptr
without registering a new overload. This behavior used to work previously according to my old tests, not anymore.Consider this example:
Throws this error:
@ThePhD Any thoughts?
The text was updated successfully, but these errors were encountered: