mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #50 from vadz/I10-example-fix
Add missing "=" to the example of using tie()
This commit is contained in:
commit
608d3d146b
|
@ -1259,7 +1259,7 @@ consider using a style that returns a pair of values:
|
||||||
|
|
||||||
int val;
|
int val;
|
||||||
int error_code;
|
int error_code;
|
||||||
tie(val,error_code) do_something();
|
tie(val,error_code) = do_something();
|
||||||
if (error_code==0) {
|
if (error_code==0) {
|
||||||
// ... handle the error or exit ...
|
// ... handle the error or exit ...
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user