xo-alloc: explicit typeseq arg to alloc
This commit is contained in:
parent
99108b8dbb
commit
c1b0504fc1
4 changed files with 13 additions and 6 deletions
|
|
@ -8,8 +8,9 @@
|
|||
namespace xo {
|
||||
using xo::mm::AGCObject;
|
||||
using xo::mm::AAllocator;
|
||||
using xo::facet::with_facet;
|
||||
//using xo::facet::with_facet;
|
||||
using xo::facet::obj;
|
||||
using xo::facet::typeseq;
|
||||
using std::size_t;
|
||||
|
||||
namespace scm {
|
||||
|
|
@ -23,7 +24,8 @@ namespace xo {
|
|||
IGCObject_DList::shallow_copy(const DList & src,
|
||||
obj<AAllocator> mm) noexcept
|
||||
{
|
||||
DList * copy = (DList *)mm.alloc(sizeof(DList));
|
||||
/* FIXME: need to supply object age here */
|
||||
DList * copy = (DList *)mm.alloc(typeseq::id<DList>(), sizeof(DList));
|
||||
|
||||
if (copy)
|
||||
*copy = src;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue