refactor: rename shallow_copy -> shallow_move + streamline
Use RCollector.std_copy_for where appropriate
This commit is contained in:
parent
2003c3c6f9
commit
d16f2a0484
44 changed files with 72 additions and 114 deletions
|
|
@ -110,8 +110,11 @@ namespace xo {
|
|||
}
|
||||
|
||||
DApplyExpr *
|
||||
DApplyExpr::shallow_move(obj<AAllocator> mm) const noexcept {
|
||||
DApplyExpr * copy = (DApplyExpr *)mm.alloc_copy((std::byte *)this);
|
||||
DApplyExpr::shallow_move(obj<ACollector> gc) noexcept {
|
||||
// note: not using ACollector.std_copy_for() here,
|
||||
// flexible array -> not move-constructible
|
||||
|
||||
DApplyExpr * copy = (DApplyExpr *)gc.alloc_copy_for(this);
|
||||
|
||||
if (copy) {
|
||||
copy->typeref_ = typeref_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue