1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

Badge: Access to underlying type

Problem:
- Access to the underlying type is not provided. This limits
  metaprogramming and usage in function templates.

Solution:
- Provide public access to the underlying type.
- Add test to ensure the underlying type is accessible.
This commit is contained in:
Lenny Maiorani 2021-01-14 11:12:44 -07:00 committed by Andreas Kling
parent 53afdc0106
commit 6d6b3f9523
3 changed files with 43 additions and 2 deletions

View file

@ -30,6 +30,10 @@ namespace AK {
template<typename T>
class Badge {
public:
using Type = T;
private:
friend T;
constexpr Badge() = default;