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/selectors.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/selectors.hh')
| -rw-r--r-- | src/selectors.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectors.hh b/src/selectors.hh index e0bbb5b5..e873d9ab 100644 --- a/src/selectors.hh +++ b/src/selectors.hh @@ -60,7 +60,7 @@ enum class ObjectFlags Inner = 4 }; -template<> struct WithBitOps<ObjectFlags> : std::true_type {}; +constexpr bool with_bit_ops(Meta::Type<ObjectFlags>) { return true; } template<WordType word_type> Optional<Selection> |
