xo-expression2: bugfix: DVarRef child forwarding.

was passing member value instead of member address.
Fix by using safer forward_inplace() convenience wrapper
This commit is contained in:
Roland Conybeare 2026-03-28 13:21:48 -04:00
commit cc99a7339e

View file

@ -78,9 +78,9 @@ namespace xo {
std::size_t
DVarRef::forward_children(obj<ACollector> gc) noexcept
{
// TODO: this can be helper in RCollector interface
auto iface = xo::facet::impl_for<AGCObject,DVariable>();
gc.forward_inplace(&iface, (void **)vardef_);
gc.forward_inplace(&vardef_);
//auto iface = xo::facet::impl_for<AGCObject,DVariable>();
//gc.forward_inplace(&iface, (void **)vardef_.data_);
// TODO: concept to indicate that no gc pointers in Binding