[algs] Fix identity return type

This commit is contained in:
Behdad Esfahbod 2019-05-08 14:59:25 -07:00
parent f5705d7656
commit 5ceaafa5de
1 changed files with 3 additions and 3 deletions

View File

@ -36,15 +36,15 @@
struct
{
template <typename T> T
operator () (const T& v) const { return v; }
template <typename T> auto
operator () (T&& v) const HB_AUTO_RETURN ( hb_forward<T> (v) )
}
HB_FUNCOBJ (hb_identity);
struct
{
template <typename T> bool
operator () (const T& v) const { return bool (v); }
operator () (T&& v) const { return bool (hb_forward<T> (v)); }
}
HB_FUNCOBJ (hb_bool);