mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
Closes #1397
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user