diff --git a/include/xo/alloc2/alloc/RAllocator.hpp b/include/xo/alloc2/alloc/RAllocator.hpp index 6255241..729778e 100644 --- a/include/xo/alloc2/alloc/RAllocator.hpp +++ b/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