mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Closes #1397
This commit is contained in:
parent
9275e7da09
commit
35cfe0c984
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user