diff --git a/src/hb-iter.hh b/src/hb-iter.hh index c74ea951e..7068aa4cc 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -281,10 +281,13 @@ struct hb_map_iter_factory_t private: Proj f; }; -template -inline hb_map_iter_factory_t -hb_map (Proj&& f) -{ return hb_map_iter_factory_t (f); } +static const struct +{ + template + hb_map_iter_factory_t + operator () (Proj&& f) const + { return hb_map_iter_factory_t (f); } +} hb_map HB_UNUSED; template