From d5201d2a31a5c1674aa229adee57962fdedacd93 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 2 Jan 2026 09:53:23 -0500 Subject: [PATCH] xo-object2: type registration + gc fixes --- include/xo/facet/facet_implementation.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/xo/facet/facet_implementation.hpp b/include/xo/facet/facet_implementation.hpp index 7e561c05..7ef18847 100644 --- a/include/xo/facet/facet_implementation.hpp +++ b/include/xo/facet/facet_implementation.hpp @@ -96,6 +96,17 @@ namespace xo { template using FacetImplType = FacetImplementation::ImplType; + /** Use: + * auto iface = xo::facet::impl_for(); + * if compiles, then iface is AGCObject interface with state DList. + **/ + template + inline auto impl_for() { + FacetImplType iface; + + return iface; + } + /** Data type for facet implementation that supports runtime polymorphism. * Implementation will stub all methods, since they will never be invoked. *