Update Wrapper
This commit is contained in:
parent
b6aa683d9c
commit
d8063bb39c
1 changed files with 5 additions and 2 deletions
|
@ -12,10 +12,13 @@ namespace utempl {
|
|||
template <auto Value>
|
||||
struct Wrapper {
|
||||
static constexpr auto kValue = Value;
|
||||
inline constexpr auto operator==(auto&& arg) {
|
||||
inline constexpr auto operator==(auto&& arg) const {
|
||||
return arg == Value;
|
||||
};
|
||||
consteval operator decltype(Value)() {
|
||||
consteval operator decltype(Value)() const {
|
||||
return Value;
|
||||
};
|
||||
consteval auto operator*() const {
|
||||
return Value;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue