enum-flags icon indicating copy to clipboard operation
enum-flags copied to clipboard

Bit flags for C++11 scoped enums

Results 9 enum-flags issues
Sort by recently updated
recently updated
newest added

Currently the `ALLOW_FLAGS_FOR_ENUM` has to be in global scope to work, which can be a bit cumbersome (see #26). Instead, I propose two different macros: ```cpp #define ALLOW_FLAGS_FOR_ENUM(Name) inline void...

I'm just exploring the possibility of adding support for CMake (while keeping support for Jam), in order to export the library for use in other CMake projects (something similar to...

The `~` operator negates the underlying integer value and something like `~Flags(empty)` is thus in general not equal to or-ing all flags. See an example here: https://wandbox.org/permlink/RQGdNMjBO0RE2tDy Is there a...

template constexpr auto operator~(E e1) noexcept -> typename std::enable_if::type{ return ~flags::flags(e1); }

If flags(empty_t) were not declared explicit, I could do the following: void f(int x, flags::flags f = flags::empty); Instead of: void f(int x, flags::flags f = flags::flags(flags::empty)); ..which of course...