diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-09 17:39:30 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-09 17:39:30 +0100 |
commit | 5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565 (patch) | |
tree | 2500bc537a045a66ae68288f01bff569decdd80c /src/macros_and_utils.hpp | |
parent | a334c7662a1a7be5b79efe72076c49ab7c714070 (diff) | |
download | lanes-5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565.tar.gz lanes-5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565.tar.bz2 lanes-5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565.zip |
Improved DeepPrelude architecture
Diffstat (limited to 'src/macros_and_utils.hpp')
-rw-r--r-- | src/macros_and_utils.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/macros_and_utils.hpp b/src/macros_and_utils.hpp index 6850ddf..0897367 100644 --- a/src/macros_and_utils.hpp +++ b/src/macros_and_utils.hpp | |||
@@ -47,3 +47,16 @@ typename T::value_type const& OptionalValue(T const& x_, Ts... args_) | |||
47 | } | 47 | } |
48 | return x_.value(); | 48 | return x_.value(); |
49 | } | 49 | } |
50 | |||
51 | // ################################################################################################# | ||
52 | |||
53 | struct PasskeyToken {}; | ||
54 | constexpr PasskeyToken PK{}; | ||
55 | template <typename T> | ||
56 | class Passkey | ||
57 | { | ||
58 | private: | ||
59 | friend T; | ||
60 | Passkey(PasskeyToken) {} | ||
61 | // rule of 5 ignored out of laziness here | ||
62 | }; | ||