From 74770f1071e6102795393cf65dd0c651038db6b4 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 2 Sep 2011 19:23:18 +0000 Subject: [PATCH] Ensure that assignment gestures through CDMap iterators like: (*myCDMap.find(foo)).second = bar; fail with a compile-time error (rather than being silently ignored, like they had been). Resolves bug #276. --- src/context/cdmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context/cdmap.h b/src/context/cdmap.h index 1e7e931da..c71459835 100644 --- a/src/context/cdmap.h +++ b/src/context/cdmap.h @@ -514,8 +514,8 @@ public: } // Dereference operators. - std::pair operator*() const { - return std::pair(d_it->getKey(), d_it->get()); + std::pair operator*() const { + return std::pair(d_it->getKey(), d_it->get()); } // Prefix increment -- 2.30.2