-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spanner): avoid evaluation-order issue in function arguments
The behavior of ``` extern void f(std::unique_ptr<T>, T); std::unique_ptr<T> p = ...; f(std::move(p), *p); ``` is undefined, so introduce a sequence point between dereferencing the `unique_ptr` and moving it.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 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