From 9b61e8e3249f49a2a427845edb165d6af2e6219d Mon Sep 17 00:00:00 2001 From: Michael Park Date: Fri, 11 Dec 2015 15:44:14 -0500 Subject: [PATCH] F.21: Fixed order of arguments to `make_tuple`. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c57b211..f295131 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2418,7 +2418,7 @@ And yes, C++ does have multiple return values, by convention of using a `tuple`, tuple f(const string& input) // GOOD: self-documenting { // ... - return make_tuple(something(), status); + return make_tuple(status, something()); } In fact, C++98's standard library already used this convenient feature, because a `pair` is like a two-element `tuple`.