Usage of weak_ptr in SugarCpp.