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>
|
template <auto Value>
|
||||||
struct Wrapper {
|
struct Wrapper {
|
||||||
static constexpr auto kValue = Value;
|
static constexpr auto kValue = Value;
|
||||||
inline constexpr auto operator==(auto&& arg) {
|
inline constexpr auto operator==(auto&& arg) const {
|
||||||
return arg == Value;
|
return arg == Value;
|
||||||
};
|
};
|
||||||
consteval operator decltype(Value)() {
|
consteval operator decltype(Value)() const {
|
||||||
|
return Value;
|
||||||
|
};
|
||||||
|
consteval auto operator*() const {
|
||||||
return Value;
|
return Value;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue