refactor: rename GCObject.shallow_copy -> shallow_move
resolve conflict since relying on move constructor in std_copy_for
This commit is contained in:
parent
45dd3749e0
commit
06161d2b50
164 changed files with 255 additions and 255 deletions
|
|
@ -156,7 +156,7 @@ namespace xo {
|
|||
}
|
||||
|
||||
DString *
|
||||
DString::shallow_copy(obj<AAllocator> mm) const noexcept
|
||||
DString::shallow_move(obj<AAllocator> mm) const noexcept
|
||||
{
|
||||
DString * copy = (DString *)mm.alloc_copy((std::byte *)this);
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ namespace xo {
|
|||
}
|
||||
|
||||
DUniqueString *
|
||||
DUniqueString::shallow_copy(obj<AAllocator> mm) const noexcept
|
||||
DUniqueString::shallow_move(obj<AAllocator> mm) const noexcept
|
||||
{
|
||||
// well-posed, but not expected to be used.
|
||||
assert(false);
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DString::shallow_copy(DString & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DString::shallow_move(DString & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_copy(mm);
|
||||
return self.shallow_move(mm);
|
||||
}
|
||||
auto
|
||||
IGCObject_DString::forward_children(DString & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
auto
|
||||
IGCObject_DUniqueString::shallow_copy(DUniqueString & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
IGCObject_DUniqueString::shallow_move(DUniqueString & self, obj<AAllocator> mm) noexcept -> Opaque
|
||||
{
|
||||
return self.shallow_copy(mm);
|
||||
return self.shallow_move(mm);
|
||||
}
|
||||
auto
|
||||
IGCObject_DUniqueString::forward_children(DUniqueString & self, obj<ACollector> gc) noexcept -> size_type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue