BIND 10 trac510, updated. 1cd21e93810b18a4aa90d7d20afa6dbc3c0a8861 [510] do not use BOOST_FOREACH to address build failure on Mac OS X

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Dec 8 10:52:14 UTC 2011


The branch, trac510 has been updated
       via  1cd21e93810b18a4aa90d7d20afa6dbc3c0a8861 (commit)
      from  8dcf5eebb1b81e6cdc963985daa6c80497ac8c16 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1cd21e93810b18a4aa90d7d20afa6dbc3c0a8861
Author: Yoshitaka Aharen <aharen at jprs.co.jp>
Date:   Thu Dec 8 19:51:44 2011 +0900

    [510] do not use BOOST_FOREACH to address build failure on Mac OS X

-----------------------------------------------------------------------

Summary of changes:
 src/lib/statistics/tests/counter_dict_unittest.cc |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/statistics/tests/counter_dict_unittest.cc b/src/lib/statistics/tests/counter_dict_unittest.cc
index d093e3d..aa09597 100644
--- a/src/lib/statistics/tests/counter_dict_unittest.cc
+++ b/src/lib/statistics/tests/counter_dict_unittest.cc
@@ -118,20 +118,22 @@ TEST_F(CounterDictionaryTest, iteratorTest) {
     // Walk through the elements with iterator
     // Check if the elements "test" and "sub.test" appears only once
     //  and the counters have expected value
-    BOOST_FOREACH(CounterDictionary::ValueType i,
-                  static_cast<const CounterDictionary &>(counters))
+    for (CounterDictionary::ConstIterator i = counters.begin(),
+                                          e = counters.end();
+         i != e;
+         ++i)
     {
-        if (i.name == "test" && element_test_visited == false) {
+        if (i->name == "test" && element_test_visited == false) {
             element_test_visited = true;
             // Check if the counters have expected value
-            EXPECT_EQ(i.element.get(ITEM1), 1);
-            EXPECT_EQ(i.element.get(ITEM2), 0);
-        } else if (i.name == "sub.test" &&
+            EXPECT_EQ(i->element.get(ITEM1), 1);
+            EXPECT_EQ(i->element.get(ITEM2), 0);
+        } else if (i->name == "sub.test" &&
                    element_sub_test_visited == false) {
             element_sub_test_visited = true;
             // Check if the counters have expected value
-            EXPECT_EQ(i.element.get(ITEM1), 0);
-            EXPECT_EQ(i.element.get(ITEM2), 2);
+            EXPECT_EQ(i->element.get(ITEM1), 0);
+            EXPECT_EQ(i->element.get(ITEM2), 2);
         } else {
             // Test fails when reaches here: the element is not expected or
             //  the element appeared twice




More information about the bind10-changes mailing list