|
|
|
|
@ -3150,7 +3150,7 @@ For example:
|
|
|
|
|
// to people who know measure()
|
|
|
|
|
auto [x, y] = measure(obj4); // don't; it's likely to be confusing
|
|
|
|
|
|
|
|
|
|
The overly-generic `pair` and `tuple` should be used only when the value returned represents to independent entities rather than an abstraction.
|
|
|
|
|
The overly-generic `pair` and `tuple` should be used only when the value returned represents independent entities rather than an abstraction.
|
|
|
|
|
|
|
|
|
|
Another example, use a specific type along the lines of `variant<T, error_code>`, rather than using the generic `tuple`.
|
|
|
|
|
|
|
|
|
|
|