summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc')
-rw-r--r--libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc
index f123850ecf1..b07d44ba9bb 100644
--- a/libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_map/modifiers/try_emplace.cc
@@ -39,6 +39,7 @@ struct Val
{
val = other.val;
other.moved_from_assign = true;
+ return *this;
}
};