diff --git a/include/utempl/utils.hpp b/include/utempl/utils.hpp index 4a45e92..abd068e 100644 --- a/include/utempl/utils.hpp +++ b/include/utempl/utils.hpp @@ -12,10 +12,13 @@ namespace utempl { template 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; }; };