Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Wdeprecated-copy in wfl::variant, and add move operations
Fixes the majority of the warnings in issue #4166. This class already shared copies of value_ between instances, it seems to be the immutable design pattern so can share from const to non-const instances safely. Cherry-picking this to 1.14 needs a trivial conflict to be resolved, the next line in the .cpp file has changed from size_t in 1.14 to std::size_t in 1.15.
- Loading branch information
1 parent
1fac6ac
commit eabf933
Showing
2 changed files
with
4 additions
and
7 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