[algs] Fix identity return type
This commit is contained in:
parent
f5705d7656
commit
5ceaafa5de
|
@ -36,15 +36,15 @@
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
template <typename T> T
|
template <typename T> auto
|
||||||
operator () (const T& v) const { return v; }
|
operator () (T&& v) const HB_AUTO_RETURN ( hb_forward<T> (v) )
|
||||||
}
|
}
|
||||||
HB_FUNCOBJ (hb_identity);
|
HB_FUNCOBJ (hb_identity);
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
template <typename T> bool
|
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);
|
HB_FUNCOBJ (hb_bool);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue