28 *
self_ =
static_cast<T*
>(
this);
32 self_ = std::move(o.self_);
33 *
self_ =
static_cast<T*
>(
this);
50 if(
auto pp =
self_.lock()) {
61 return bool(
self_.lock());
65 return !
operator bool();
enable_lua_ptr(enable_lua_ptr &&o)
enable_lua_ptr(const enable_lua_ptr &o)=delete
std::shared_ptr< T * > self_
enable_lua_ptr & operator=(enable_lua_ptr &&o)
Tmust inherit enable_lua_ptr<T>
lua_ptr(enable_lua_ptr< T > &o)
std::weak_ptr< T * > self_