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:
parent
34c87dc1e6
commit
2c14d410de
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue