From db9b863222dbd51154c422cf85bc8fafacd5b25b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 15 Mar 2017 17:55:34 +0000 Subject: Migrate WithBitOps template specialization to with_bit_ops function This way we dont depend on knowing the base template to enable bit ops on an enum type. --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 0ee22f59..03826487 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1261,7 +1261,7 @@ enum class SelectFlags Extend = 4 }; -template<> struct WithBitOps : std::true_type {}; +constexpr bool with_bit_ops(Meta::Type) { return true; } template void select_to_next_char(Context& context, NormalParams params) -- cgit v1.2.3