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 2c14d410de

View file

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