-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nb::[try_]cast
: improved handling of implicit conversions
The ``nb::cast`` and ``nb::try_cast`` function may perform implicit conversions of their input argument when called with ``convert=true``. However, more complex chains of conversions that requiring lifetime from the ``detail::cleanup_list`` were rejected. This commit fixes this confusing corner case.
- Loading branch information
Showing
2 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters