diff --git a/src/hb-algs.hh b/src/hb-algs.hh index cf1c554da..d08ee2ee4 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -31,17 +31,17 @@ #include "hb-null.hh" -static HB_UNUSED const struct hb_identity_ft +static const struct hb_identity_ft { template T operator () (const T& v) const { return v; } -} hb_identity; +} hb_identity HB_UNUSED; -static HB_UNUSED const struct hb_bool_ft +static const struct hb_bool_ft { template bool operator () (const T& v) const { return bool (v); } -} hb_bool; +} hb_bool HB_UNUSED; template struct hb_pair_t @@ -61,17 +61,17 @@ struct hb_pair_t template static inline hb_pair_t hb_pair (T1 a, T2 b) { return hb_pair_t (a, b); } -static HB_UNUSED const struct hb_first_ft +static const struct hb_first_ft { template typename Pair::first_t operator () (const Pair& pair) const { return pair.first; } -} hb_first; +} hb_first HB_UNUSED; -static HB_UNUSED const struct hb_second_ft +static const struct hb_second_ft { template typename Pair::second_t operator () (const Pair& pair) const { return pair.second; } -} hb_second; +} hb_second HB_UNUSED; /*