refactor: use GCObjectVisitor api w/ gco_shallow_move
This commit is contained in:
parent
547f897c31
commit
e95353f1c8
169 changed files with 391 additions and 402 deletions
|
|
@ -149,14 +149,8 @@ namespace xo {
|
|||
return this->size_;
|
||||
}
|
||||
|
||||
auto
|
||||
DString::shallow_size() const noexcept -> size_type
|
||||
{
|
||||
return sizeof(DString) + capacity_;
|
||||
}
|
||||
|
||||
DString *
|
||||
DString::shallow_move(obj<ACollector> gc) noexcept
|
||||
DString::gco_shallow_move(obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
// note: not using gc.std_move_for() here
|
||||
// b/c DString flexible array means not move-constructible
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue