mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09: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
Notes:
sideshowbarker
2024-07-19 12:57:24 +09:00
Author: https://github.com/awesomekling
Commit: eeff0cd570
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ public:
|
||||||
template<typename U>
|
template<typename U>
|
||||||
OwnPtr& operator=(const OwnPtr<U>&) = delete;
|
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>
|
template<typename U>
|
||||||
OwnPtr(const RefPtr<U>&) = delete;
|
OwnPtr(const RefPtr<U>&) = delete;
|
||||||
template<typename U>
|
template<typename U>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue