From 67e01c1292821e7b6fc2ab13acddb84ab41b2187 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 1 Mar 2023 20:07:38 -0700 Subject: [PATCH] [map] Try to work around old Mac compiler bug Maybe fixes https://github.com/harfbuzz/harfbuzz/issues/4138 --- src/hb-map.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index 615d1825e..b718f1657 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -317,12 +317,14 @@ struct hb_hashmap_t hb_copy (other, *this); } - void keys (hb_set_t &keys_) const + template + void keys (Iterable &keys_) const { hb_copy (keys() , keys_); } - void values (hb_set_t &values_) const + template + void values (Iterable &values_) const { hb_copy (values() , values_); }