From 6aeb97d18514cc8f6dc4a5bd3fbf9b3567ae3a60 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 1 Dec 2025 01:20:49 -0500 Subject: [PATCH] xo-alloc + xo-allocutil: refactor to shrink dep surface area --- example/ex2/imgui_ex2.cpp | 3 ++- example/ex4/AppState.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/example/ex2/imgui_ex2.cpp b/example/ex2/imgui_ex2.cpp index 3da0c883..90694618 100644 --- a/example/ex2/imgui_ex2.cpp +++ b/example/ex2/imgui_ex2.cpp @@ -263,6 +263,7 @@ GcStateDescription::GcStateDescription(const GcGenerationDescription & nursery, using xo::gp; using xo::up; +using xo::IObject; using xo::Object; using xo::obj::List; using xo::obj::Integer; @@ -342,7 +343,7 @@ AppState::AppState() Object::mm = gc_.get(); for (auto & x: gc_root_v_) - gc_->add_gc_root(x.ptr_address()); + gc_->add_gc_root(reinterpret_cast(x.ptr_address())); gc_->disable_gc(); } diff --git a/example/ex4/AppState.cpp b/example/ex4/AppState.cpp index 1d145667..11c43ff2 100644 --- a/example/ex4/AppState.cpp +++ b/example/ex4/AppState.cpp @@ -4,6 +4,7 @@ #include "xo/object/Integer.hpp" #include "xo/object/List.hpp" +using xo::IObject; using xo::obj::Integer; using xo::obj::List; using xo::gp; @@ -22,7 +23,7 @@ AppState::AppState() Object::mm = gc_.get(); for (auto & x: gc_root_v_) - gc_->add_gc_root(x.ptr_address()); + gc_->add_gc_root(reinterpret_cast(x.ptr_address())); gc_->disable_gc(); }