Err, fix hb_invoke() variadic

This commit is contained in:
Behdad Esfahbod 2019-04-22 17:45:23 -04:00
parent c862a532df
commit 25dd88efc6
2 changed files with 7 additions and 4 deletions

View File

@ -73,7 +73,7 @@ struct
/* Pointer-to-member-function. */
template <typename Appl, typename Val1, typename ...Vals> auto
impl (Appl&& a, hb_priority<2>, Val1 &&v1, Vals &&...vs) const HB_AUTO_RETURN
(hb_forward<Val1> (hb_deref_pointer (v1)).*a (hb_forward<Vals...> (vs...)))
(hb_forward<Val1> (hb_deref_pointer (v1)).*a (hb_forward<Vals> (vs)...))
/* Pointer-to-member. */
template <typename Appl, typename Val> auto
@ -83,7 +83,7 @@ struct
/* Operator(). */
template <typename Appl, typename ...Vals> auto
impl (Appl&& a, hb_priority<0>, Vals &&...vs) const HB_AUTO_RETURN
(hb_deref_pointer (a) (hb_forward<Vals...> (vs...)))
(hb_deref_pointer (a) (hb_forward<Vals> (vs)...))
public:
@ -92,7 +92,7 @@ struct
(
impl (hb_forward<Appl> (a),
hb_prioritize,
hb_forward<Vals...> (vs...))
hb_forward<Vals> (vs)...)
)
} HB_FUNCOBJ (hb_invoke);

View File

@ -197,5 +197,8 @@ main (int argc, char **argv)
long vl;
s >> vl;
if (0)
hb_invoke (main, 0, nullptr);
return 0;
}