Add ifndef before ENABLE_BITWISE_ENUM

This commit is contained in:
Phillip Stephens 2015-11-21 20:18:30 -08:00
parent 84b78f2962
commit e7cbf17150
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <string>
#ifndef ENABLE_BITWISE_ENUM
#define ENABLE_BITWISE_ENUM(type)\
inline type operator|(type a, type b)\
{\
@ -31,6 +32,7 @@ inline type operator~(const type& key)\
using T = std::underlying_type_t<type>;\
return type(~static_cast<T>(key));\
}
#endif
namespace boo
{