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. *