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/main.cc | |
| 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/main.cc')
| -rw-r--r-- | src/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index f7cbdd54..426e7809 100644 --- a/src/main.cc +++ b/src/main.cc @@ -493,7 +493,7 @@ enum class ServerFlags ReadOnly = 1 << 2, StartupInfo = 1 << 3, }; -template<> struct WithBitOps<ServerFlags> : std::true_type {}; +constexpr bool with_bit_ops(Meta::Type<ServerFlags>) { return true; } int run_server(StringView session, StringView init_cmds, Optional<BufferCoord> init_coord, |
