From b35c837477fef40917f174a4a322f0362b7435c6 Mon Sep 17 00:00:00 2001 From: Alexey Dmitriev Date: Fri, 15 Oct 2021 16:39:08 +0300 Subject: [PATCH] Replace structured bindings example in ES.11 (#1840) Closes #1655 --- CppCoreGuidelines.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 33bda3f..27b33ba 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10475,7 +10475,9 @@ When concepts become available, we can (and should) be more specific about the t ##### Example (C++17) - auto [ quotient, remainder ] = div(123456, 73); // break out the members of the div_t result + std::set values; + // ... + auto [ position, newly_inserted ] = values.insert(5); // break out the members of the std::pair ##### Enforcement