-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Unregister instance after moving, thus avoiding reusing an invalidated instance pointer later on. Note: this implementation is rather hacky, because in hopes that the function clear_instance() inlined in detail/class.h will be available in cast.h as well. A clean solution should move the corresponding code into a shared header. Not sure also, I should clear_instance() or only deregister_instance()? - (Partially) reverts 8b45197 Moving the same variable twice into a function will error in C++ as well. We don't need to catch that in Python, do we?
- Loading branch information
Showing
1 changed file
with
28 additions
and
13 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