[meta] Don't use template default arguments for functions
That's a C++11 extension apparently...
This commit is contained in:
parent
b89d20dd9f
commit
3d22900f62
|
@ -55,7 +55,7 @@ template<typename T>
|
||||||
struct hb_enable_if<true, T> { typedef T type; };
|
struct hb_enable_if<true, T> { typedef T type; };
|
||||||
|
|
||||||
#define hb_enable_if(Cond) typename hb_enable_if<Cond>::type* = nullptr
|
#define hb_enable_if(Cond) typename hb_enable_if<Cond>::type* = nullptr
|
||||||
#define hb_enable_if_t(Type, Cond) hb_enable_if<(Cond), Type>::type
|
#define hb_enable_if_t(Cond, Type) typename hb_enable_if<(Cond), Type>::type
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -552,10 +552,10 @@ struct ArrayOf
|
||||||
if (unlikely (!c->extend (*this))) return_trace (false);
|
if (unlikely (!c->extend (*this))) return_trace (false);
|
||||||
return_trace (true);
|
return_trace (true);
|
||||||
}
|
}
|
||||||
template <typename Iterator,
|
template <typename Iterator>
|
||||||
hb_enable_if (hb_is_iterator (Iterator))>
|
hb_enable_if_t (hb_is_iterator (Iterator),
|
||||||
bool serialize (hb_serialize_context_t *c,
|
bool) serialize (hb_serialize_context_t *c,
|
||||||
Iterator items)
|
Iterator items)
|
||||||
{
|
{
|
||||||
TRACE_SERIALIZE (this);
|
TRACE_SERIALIZE (this);
|
||||||
unsigned count = items.len ();
|
unsigned count = items.len ();
|
||||||
|
|
Loading…
Reference in New Issue