Use variadic template args for propagate_error()
Let's see if bots happy. Not sure where else we can use these. Mm. Maybe in hb_invoke().
This commit is contained in:
parent
9bab398462
commit
24da1d0860
|
@ -126,11 +126,8 @@ struct hb_serialize_context_t
|
||||||
template <typename T> bool propagate_error (T &&obj)
|
template <typename T> bool propagate_error (T &&obj)
|
||||||
{ return propagate_error (!hb_deref_pointer (obj).in_error ()); }
|
{ return propagate_error (!hb_deref_pointer (obj).in_error ()); }
|
||||||
|
|
||||||
template <typename T1, typename T2> bool propagate_error (T1 &&o1, T2 &&o2)
|
template <typename T1, typename... Ts> bool propagate_error (T1 &&o1, Ts &&...os)
|
||||||
{ return propagate_error (o1) && propagate_error (o2); }
|
{ return propagate_error (o1) && propagate_error (os...); }
|
||||||
template <typename T1, typename T2, typename T3>
|
|
||||||
bool propagate_error (T1 &&o1, T2 &&o2, T3 &&o3)
|
|
||||||
{ return propagate_error (o1) && propagate_error (o2, o3); }
|
|
||||||
|
|
||||||
/* To be called around main operation. */
|
/* To be called around main operation. */
|
||||||
template <typename Type>
|
template <typename Type>
|
||||||
|
|
Loading…
Reference in New Issue