summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index fd13a5a0..2962ac12 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -35,7 +35,7 @@ enum class PromptFlags
Password = 1 << 0,
DropHistoryEntriesWithBlankPrefix = 1 << 1
};
-template<> struct WithBitOps<PromptFlags> : std::true_type {};
+constexpr bool with_bit_ops(Meta::Type<PromptFlags>) { return true; }
using KeyCallback = std::function<void (Key, Context&)>;
@@ -131,8 +131,7 @@ enum class AutoInfo
Normal = 1 << 2
};
-template<>
-struct WithBitOps<AutoInfo> : std::true_type {};
+constexpr bool with_bit_ops(Meta::Type<AutoInfo>) { return true; }
constexpr Array<EnumDesc<AutoInfo>, 3> enum_desc(Meta::Type<AutoInfo>)
{