diff --git a/xo-alloc2/include/xo/alloc2/alloc/RAllocator.hpp b/xo-alloc2/include/xo/alloc2/alloc/RAllocator.hpp index 62552411..729778e9 100644 --- a/xo-alloc2/include/xo/alloc2/alloc/RAllocator.hpp +++ b/xo-alloc2/include/xo/alloc2/alloc/RAllocator.hpp @@ -32,8 +32,8 @@ namespace xo { : Object(iface, data) {} template - void * alloc_for() noexcept { - return O::iface()->alloc(O::data(), typeseq::id(), sizeof(T)); + void * alloc_for(size_type n = sizeof(T)) noexcept { + return O::iface()->alloc(O::data(), typeseq::id(), n); } template