-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix move assignment for TypeErasedValue
Summary: The current implementation of move assignment is completely broken if the two `TypeErasedValue` instances are of different types. the `move_assign` in the vtable is called with the wrong type! This diff implements move assign in terms of destroy + move (similar to move constructor) and removes `move_assign` from the vtable (which already has very limited usefulness) Reviewed By: evanjzou Differential Revision: D70298897 fbshipit-source-id: 39f2001d1f3338b35068c437c478360d7dbcb7aa
- Loading branch information
1 parent
980da88
commit 35205da
Showing
2 changed files
with
14 additions
and
8 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