| 560 | |
| 561 | template <class T> |
| 562 | Global<T>::Global(Global&& other) : PersistentBase<T>(other.val_) { |
| 563 | if (other.val_ != nullptr) { |
| 564 | api_internal::MoveGlobalReference( |
| 565 | reinterpret_cast<internal::Address**>(&other.val_), |
| 566 | reinterpret_cast<internal::Address**>(&this->val_)); |
| 567 | other.val_ = nullptr; |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | template <class T> |
| 572 | template <class S> |
no outgoing calls