Change register_smart_ptr to smart_ptr.