xo-alloc / xo-ordinaltree: + concepts + allocator-aware

This commit is contained in:
Roland Conybeare 2025-12-03 15:36:59 -05:00
commit 92d22defe2
2 changed files with 3 additions and 1 deletions

View file

@ -96,6 +96,8 @@ namespace xo {
virtual std::size_t _forward_children(gc::IAlloc * gc) = 0;
};
static_assert(std::is_destructible_v<IObject>, "IObject must be destructible");
/** @class Cpof
* @brief argument to operator new used for garbage collector evacuation phase
*

View file

@ -34,7 +34,7 @@ namespace xo {
**/
template <typename T>
class ObjectVisitor {
//void forward_children(T & target, IAlloc * gc) { (void)target; (void)gc; }
void forward_children(T & target, IAlloc * gc) { (void)target; (void)gc; }
};
#define XO_TRIVIAL_OBJECT_VISITOR(TYPE) \