diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-03-15 17:55:34 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-03-15 18:00:58 +0000 |
| commit | db9b863222dbd51154c422cf85bc8fafacd5b25b (patch) | |
| tree | c64d4a42ff62372736d747a1ab25568954ba6e32 /src/context.hh | |
| parent | a49e175727928b8b45c0c2ccdb01f143ea6d18c2 (diff) | |
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.
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/context.hh b/src/context.hh index a50eb87f..ba981f69 100644 --- a/src/context.hh +++ b/src/context.hh @@ -183,8 +183,7 @@ private: NestedBool m_history_disabled; }; -template<> -struct WithBitOps<Context::Flags> : std::true_type {}; +constexpr bool with_bit_ops(Meta::Type<Context::Flags>) { return true; } struct ScopedEdition { |
