mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Merge pull request #50 from vadz/I10-example-fix
Add missing "=" to the example of using tie()
This commit is contained in:
@@ -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 ...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user