diff --git a/xo-alloc2/idl/Collector.json5 b/xo-alloc2/idl/Collector.json5 index 491c42ae..6f42b854 100644 --- a/xo-alloc2/idl/Collector.json5 +++ b/xo-alloc2/idl/Collector.json5 @@ -312,7 +312,7 @@ "", "/** convenience template for move-constructible T (this is common) **/", "template ", - "void * std_copy_for(const T * src) noexcept {", + "T * std_copy_for(const T * src) noexcept {", " void * mem = this->alloc_copy_for(src);", " if (mem) {", " return new (mem) T(std::move(*src));",