xo-alloc2: nit: RCollector.std_copy_for returns T*
was returning void*
This commit is contained in:
parent
06161d2b50
commit
a129508224
1 changed files with 1 additions and 1 deletions
|
|
@ -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));",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue