xo-alloc2: shallow_copy api + bugfixes [WIP]

This commit is contained in:
Roland Conybeare 2025-12-14 11:30:12 -05:00
commit 7f792bea9b
6 changed files with 15 additions and 6 deletions

View file

@ -30,8 +30,8 @@ namespace xo {
size_type shallow_size(Copaque d) const noexcept override {
return I::shallow_copy(_dcast(d));
}
Opaque * shallow_copy(Copaque d) const noexcept override {
return I::shallow_size(_dcast(d));
Opaque * shallow_copy(Copaque d, obj<AAllocator> mm) const noexcept override {
return I::shallow_size(_dcast(d), mm);
}
// non-const methods