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

Cannot assign type 'nullptr_t' to 'shared_ptr[CBuffer]' #3020

Open
pitrou opened this issue Jun 27, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@pitrou
Copy link
Contributor

commented Jun 27, 2019

This is possible in C++ (passing nullptr when a shared_ptr is expected) but not in Cython.

Note the corresponding constructor isn't explicit, so allows implicit conversion:
https://en.cppreference.com/w/cpp/memory/shared_ptr/shared_ptr

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.