xo-alloc / xo-ordinaltree: + concepts + allocator-aware
This commit is contained in:
parent
27001fcdbc
commit
72e8db30e1
9 changed files with 198 additions and 111 deletions
|
|
@ -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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue