You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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?
0 commit comments