mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
AK: Delete the Badge copy and move constructors.
This commit is contained in:
parent
c4d24bb4e9
commit
e673bb921e
Notes:
sideshowbarker
2024-07-19 13:39:11 +09:00
Author: https://github.com/awesomekling
Commit: e673bb921e
1 changed files with 13 additions and 0 deletions
13
AK/Badge.h
13
AK/Badge.h
|
@ -1,7 +1,20 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
namespace AK {
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class Badge {
|
class Badge {
|
||||||
friend T;
|
friend T;
|
||||||
Badge() {}
|
Badge() {}
|
||||||
|
|
||||||
|
Badge(const Badge&) = delete;
|
||||||
|
Badge& operator=(const Badge&) = delete;
|
||||||
|
|
||||||
|
Badge(Badge&&) = delete;
|
||||||
|
Badge& operator=(Badge&&) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
using AK::Badge;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue