AK: Use Noncopyable.h in Badge

This commit is contained in:
Jonne Ransijn 2024-11-15 23:55:59 +01:00
parent 0be6603d5e
commit b35fbe77c6
No known key found for this signature in database
GPG key ID: 49DC70026D2C578C

View file

@ -6,24 +6,22 @@
#pragma once
#include <AK/Noncopyable.h>
#include <AK/Platform.h>
namespace AK {
template<typename T>
class Badge {
AK_MAKE_NONCOPYABLE(Badge);
AK_MAKE_NONMOVABLE(Badge);
public:
using Type = T;
private:
friend T;
constexpr Badge() = default;
Badge(Badge const&) = delete;
Badge& operator=(Badge const&) = delete;
Badge(Badge&&) = delete;
Badge& operator=(Badge&&) = delete;
};
}