Update Wrapper

This commit is contained in:
sha512sum 2024-06-28 03:49:50 +00:00
parent b6aa683d9c
commit d8063bb39c

View file

@ -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;
}; };
}; };