From b827181ba1f539c990e1bd8fdd3559f1589c8d28 Mon Sep 17 00:00:00 2001 From: rsheeter Date: Wed, 8 May 2019 13:51:11 -0700 Subject: [PATCH] [map] tweak test-iter.cc --- src/hb-map.hh | 1 - src/test-iter.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index 4a1f75e65..36dfc3e5c 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -222,7 +222,6 @@ struct hb_hashmap_t + iter() | hb_map (&hb_pair_t::first) ) - // | hb_map ([&] (item_t i) { return i.key; }) protected: diff --git a/src/test-iter.cc b/src/test-iter.cc index 63851a34e..273ba6c4f 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -206,7 +206,7 @@ main (int argc, char **argv) | hb_reduce ([&] (int acc, int value) -> int { return acc; }, 2) ; - using map_pair_t = decltype (*hb_iter (m)); + using map_pair_t = hb_item_type; + hb_iter (m) | hb_map ([] (map_pair_t p) { return p.first * p.second; });