From d8063bb39c98237acaf2e4080687d070fd70db72 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Fri, 28 Jun 2024 03:49:50 +0000 Subject: [PATCH] Update Wrapper --- include/utempl/utils.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }; };