Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std::move should not be used here because it prevents RVO (copy elision) and it's considered an anti-pattern. To fix the original warning the returned type must match the declared return type or copy elision will not be possible (and the warning will be triggered).
- Loading branch information
Showing
2 changed files
with
18 additions
and
17 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