mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 01:23:56 +01:00
[serialize] Add default template type to push()
This commit is contained in:
1 parent
b8642087e6
commit
74addbecac
1 file changed
+6
-1
+6
-1
@@ -152,7 +152,7 @@ struct hb_serialize_context_t
|
||||
link ();
|
||||
}
|
||||
|
||||
template <typename Type>
|
||||
template <typename Type = void>
|
||||
Type *push ()
|
||||
{
|
||||
object_t obj;
|
||||
@@ -218,6 +218,11 @@ struct hb_serialize_context_t
|
||||
assert (packed.tail ().head == tail);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void add_link (T &ofs, objidx_t objidx, const void *base)
|
||||
{
|
||||
}
|
||||
|
||||
void link ()
|
||||
{
|
||||
assert (!current.length);
|
||||
|
||||
Reference in new issue
Block a user