Example #1
0
 SharedObject WeakRef::shared() {
   SharedObject ret;
   if (alive()) {
     ret.assignNode((*this)->raw_);
   }
   return ret;
 }
Example #2
0
SharedObject SharedObject::clone() const {
  SharedObject ret;
  if (!isNull()) {
    ret.assignNode((*this)->clone());
  }
  return ret;
}