diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 76f701608..5764a90f6 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -375,7 +375,7 @@ struct hb_serialize_context_t (Type *, src.copy (this, hb_forward (ds)...)) template auto - _copy (const Type &src, hb_priority<0>) -> decltype (&(src = src)) + _copy (const Type &src, hb_priority<0>) -> decltype (&(hb_declval () = src)) { Type *ret = this->allocate_size (sizeof (Type)); if (unlikely (!ret)) return nullptr;