mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
AK: Don't allow constructing an OwnPtr from a const NonnullOwnPtr&
OwnPtr's must move around, they can't be copy constructed.
This commit is contained in:
parent
79ce75d862
commit
eeff0cd570
|
@ -46,6 +46,10 @@ public:
|
|||
template<typename U>
|
||||
OwnPtr& operator=(const OwnPtr<U>&) = delete;
|
||||
|
||||
template<typename U>
|
||||
OwnPtr(const NonnullOwnPtr<U>&) = delete;
|
||||
template<typename U>
|
||||
OwnPtr& operator=(const NonnullOwnPtr<U>&) = delete;
|
||||
template<typename U>
|
||||
OwnPtr(const RefPtr<U>&) = delete;
|
||||
template<typename U>
|
||||
|
|
Loading…
Reference in a new issue