[algs] Add hb_coerce()

This commit is contained in:
Behdad Esfahbod 2022-01-13 13:10:47 -07:00
parent 5a91db1135
commit 1e27f95dc1
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ struct
}
HB_FUNCOBJ (hb_bool);
template <typename T> T hb_coerce (const T v) { return v; }
template <typename T> T hb_coerce (const T *v) { return *v; }
struct
{
private: