diff --git a/src/hb-algs.hh b/src/hb-algs.hh index ab1caa031..485c139b9 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -34,6 +34,18 @@ #include "hb-null.hh" +struct +{ + template T + operator () (const T& v) const { return v; } +} HB_FUNCOBJ (hb_identity); + +struct +{ + template bool + operator () (const T& v) const { return bool (v); } +} HB_FUNCOBJ (hb_bool); + struct { /* Don't know how to set priority of following. Doesn't work right now. */ @@ -59,19 +71,6 @@ struct } } HB_FUNCOBJ (hb_hash); -struct -{ - template T - operator () (const T& v) const { return v; } -} HB_FUNCOBJ (hb_identity); - -struct -{ - template bool - operator () (const T& v) const { return bool (v); } -} HB_FUNCOBJ (hb_bool); - - struct { private: