[algs] Add hb_coerce()
This commit is contained in:
parent
5a91db1135
commit
1e27f95dc1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue