Fix C++ compilation with the new item visitor

This commit is contained in:
Olivier Goffart 2020-06-12 17:09:30 +02:00
parent 66dc643bf9
commit e7644eba94
6 changed files with 37 additions and 25 deletions

View file

@ -19,7 +19,8 @@ extern const internal::ItemVTable ImageVTable;
// Bring opaque structure in scope
using internal::ComponentVTable;
using internal::ItemTreeNode;
using ComponentRef = VRefMut<ComponentVTable>;
using ComponentRef = VRef<ComponentVTable>;
using ItemVisitorRefMut = VRefMut<internal::ItemVisitorVTable>;
template<typename Component>
void run(Component *c)
@ -51,6 +52,9 @@ constexpr inline ItemTreeNode make_item_node(std::intptr_t offset,
child_index } } };
}
// FIXME: this should have a better name
using internal::visit_item_tree;
// layouts:
using internal::Slice;
using internal::solve_grid_layout;