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
|
|
@ -11,6 +11,7 @@
|
|||
namespace xo {
|
||||
using xo::mm::AAllocator;
|
||||
using xo::facet::obj;
|
||||
using xo::facet::typeseq;
|
||||
using std::size_t;
|
||||
|
||||
namespace scm {
|
||||
|
|
@ -24,7 +25,8 @@ namespace xo {
|
|||
IGCObject_DFloat::shallow_copy(const DFloat & src,
|
||||
obj<AAllocator> mm) noexcept
|
||||
{
|
||||
DFloat * copy = (DFloat *)mm.alloc(sizeof(DFloat));
|
||||
DFloat * copy = (DFloat *)mm.alloc(typeseq::id<DFloat>(),
|
||||
sizeof(DFloat));
|
||||
|
||||
if (copy)
|
||||
*copy = src;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue