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:
Andreas Kling 2019-08-01 15:46:18 +02:00
parent 79ce75d862
commit eeff0cd570

View file

@ -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>