xo-alloc2: nit: RCollector.std_copy_for returns T*

was returning void*
This commit is contained in:
Roland Conybeare 2026-04-04 16:30:20 -04:00
commit 5e46a1a1ad

View file

@ -312,7 +312,7 @@
"",
"/** convenience template for move-constructible T (this is common) **/",
"template <typename T>",
"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));",