xo-expression2: streamline TypeRef.forward_children()
This commit is contained in:
parent
c38ab90cdd
commit
ae167d70a3
1 changed files with 7 additions and 4 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "TypeRef.hpp"
|
#include "TypeRef.hpp"
|
||||||
|
#include <xo/alloc2/Collector.hpp>
|
||||||
#include <xo/alloc2/GCObject.hpp>
|
#include <xo/alloc2/GCObject.hpp>
|
||||||
#include <xo/facet/FacetRegistry.hpp>
|
#include <xo/facet/FacetRegistry.hpp>
|
||||||
#include <xo/indentlog/print/cond.hpp>
|
#include <xo/indentlog/print/cond.hpp>
|
||||||
|
|
@ -103,10 +104,12 @@ namespace xo {
|
||||||
void
|
void
|
||||||
TypeRef::forward_children(obj<ACollector> gc) noexcept
|
TypeRef::forward_children(obj<ACollector> gc) noexcept
|
||||||
{
|
{
|
||||||
{
|
gc.forward_pivot_inplace(&type_);
|
||||||
auto e = FacetRegistry::instance().variant<AGCObject,AType>(type_);
|
|
||||||
gc.forward_inplace(e.iface(), (void **)&(type_.data_));
|
//if (type_) {
|
||||||
}
|
// auto e = FacetRegistry::instance().variant<AGCObject,AType>(type_);
|
||||||
|
// gc.forward_inplace(e.iface(), (void **)&(type_.data_));
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue