From 8f09a6045ee6e15030bbfdc235608c8e0fbf4a9f Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 1 Feb 2026 17:26:24 -0500 Subject: [PATCH] xo-reader2 xo-gc: streamline example + DX1Collector.ref() method --- include/xo/gc/DX1Collector.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/xo/gc/DX1Collector.hpp b/include/xo/gc/DX1Collector.hpp index 78b55d2..40c7f4f 100644 --- a/include/xo/gc/DX1Collector.hpp +++ b/include/xo/gc/DX1Collector.hpp @@ -175,10 +175,16 @@ namespace xo { /** Create X1 collector instance. **/ explicit DX1Collector(const CollectorConfig & cfg); + /** faceted object pointer to this instance */ + template + obj ref() { return obj(this); } + +#ifdef NOT_YET /** create instance with default configuration, * generation size @p gen_z **/ - DX1Collector make_std(std::size_t gen_z); + static DX1Collector make_std(std::size_t gen_z); +#endif std::string_view name() const { return config_.name_; }