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/option_manager.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/option_manager.hh')
| -rw-r--r-- | src/option_manager.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/option_manager.hh b/src/option_manager.hh index e794a3c9..b20303b0 100644 --- a/src/option_manager.hh +++ b/src/option_manager.hh @@ -4,7 +4,6 @@ #include "completion.hh" #include "containers.hh" #include "exception.hh" -#include "flags.hh" #include "option_types.hh" #include "vector.hh" @@ -22,7 +21,7 @@ enum class OptionFlags Hidden = 1, }; -template<> struct WithBitOps<OptionFlags> : std::true_type {}; +constexpr bool with_bit_ops(Meta::Type<OptionFlags>) { return true; } class OptionDesc { |
