core: enable_lw_shared_from_this: Add missing move and copy constructors
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
This commit is contained in:
committed by
Avi Kivity
parent
78f37b25b8
commit
8efcec1949
@@ -115,8 +115,11 @@ class enable_lw_shared_from_this {
|
||||
T* to_value() { return static_cast<T*>(this); }
|
||||
T* to_internal_object() { return static_cast<T*>(this); }
|
||||
protected:
|
||||
enable_lw_shared_from_this& operator=(const enable_lw_shared_from_this&) { return *this; }
|
||||
enable_lw_shared_from_this& operator=(enable_lw_shared_from_this&&) { return *this; }
|
||||
enable_lw_shared_from_this() noexcept {}
|
||||
enable_lw_shared_from_this(enable_lw_shared_from_this&&) noexcept {}
|
||||
enable_lw_shared_from_this(const enable_lw_shared_from_this&) noexcept {}
|
||||
enable_lw_shared_from_this& operator=(const enable_lw_shared_from_this&) noexcept { return *this; }
|
||||
enable_lw_shared_from_this& operator=(enable_lw_shared_from_this&&) noexcept { return *this; }
|
||||
public:
|
||||
lw_shared_ptr<T> shared_from_this();
|
||||
lw_shared_ptr<const T> shared_from_this() const;
|
||||
|
||||
Reference in New Issue
Block a user