-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
... moving an optional<> (as the default move c'tor would simply do) actually moves the contained object from other&& to this. But IT DOES NOT reset() the other optional. TIL. As a result, the d'tor of other&& may or may not call the cleanup callback after it was destroyed. Different scenarios and compilers produce different results. Co-Authored-By: Fabian Albert <[email protected]>
- Loading branch information
1 parent
6c92e4b
commit 4e05de7
Showing
2 changed files
with
12 additions
and
4 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