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:
parent
53afdc0106
commit
6d6b3f9523
3 changed files with 43 additions and 2 deletions
|
@ -30,6 +30,10 @@ namespace AK {
|
|||
|
||||
template<typename T>
|
||||
class Badge {
|
||||
public:
|
||||
using Type = T;
|
||||
|
||||
private:
|
||||
friend T;
|
||||
constexpr Badge() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue