xo-alloc2: nit: RCollector.std_copy_for returns T*
was returning void*
This commit is contained in:
parent
46c1efa952
commit
5e46a1a1ad
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@
|
||||||
"",
|
"",
|
||||||
"/** convenience template for move-constructible T (this is common) **/",
|
"/** convenience template for move-constructible T (this is common) **/",
|
||||||
"template <typename T>",
|
"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);",
|
" void * mem = this->alloc_copy_for(src);",
|
||||||
" if (mem) {",
|
" if (mem) {",
|
||||||
" return new (mem) T(std::move(*src));",
|
" return new (mem) T(std::move(*src));",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue