From 5c273c2fee3b882ed3da216b396ef90d50db0481 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 2 Feb 2026 10:53:28 -0500 Subject: [PATCH] xo-interpreter2: refactor to setup vsm utest + repl --- include/xo/facet/box.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/xo/facet/box.hpp b/include/xo/facet/box.hpp index 25a6561..54e724e 100644 --- a/include/xo/facet/box.hpp +++ b/include/xo/facet/box.hpp @@ -46,7 +46,7 @@ namespace xo { box(box && other) requires (std::is_same_v || std::is_same_v) - : obj() + : RoutingType>() { /* replacing .iface_ along w/ .data_ */ this->from_obj(other); @@ -55,8 +55,10 @@ namespace xo { } /** explicit conversion to obj **/ - obj to_op() const noexcept { return obj(this->iface(), this->data()); } - + obj to_op() const noexcept { + return obj(this->iface(), this->data()); + } + /** Take ownership from unowned object **/ template box & adopt(const obj & other) @@ -65,11 +67,11 @@ namespace xo { { /* replace .iface_ along w/ .data_ */ this->from_obj(other); - + return *this; } - ~box() { + ~box() { auto p = this->data(); this->_drop(); ::operator delete(p);