Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed 'mutable' member of variant_callable
In the old code, both this and the const version were part of a union, which meant both got intialized with a value. Now, the mutable variable was always nullptr. Since we cannot pass a non-const callable ptr to the variant ctor, we need to use const_cast.
- Loading branch information
Showing
3 changed files
with
2 additions
and
15 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
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