Skip to content
Snippets Groups Projects
Commit 4fe09b47 authored by Charles Villard's avatar Charles Villard
Browse files

edit: Operator.hpp: preprocessor check compiler for compatibility

parent 47f808e2
No related branches found
No related tags found
No related merge requests found
...@@ -67,8 +67,16 @@ enum class InputCategory : unsigned int { ...@@ -67,8 +67,16 @@ enum class InputCategory : unsigned int {
OptionalParam = (1 << 2) | Optional, /**< Optional parameter input. */ OptionalParam = (1 << 2) | Optional, /**< Optional parameter input. */
All = static_cast<unsigned int>(-1) All = static_cast<unsigned int>(-1)
}; };
#ifdef __WINDOWS__
template <>
constexpr bool enable_bitmask_operators<InputCategory> = true;
#else
template <> template <>
inline constexpr bool enable_bitmask_operators<InputCategory> = true; inline constexpr bool enable_bitmask_operators<InputCategory> = true;
#endif
/** /**
* @class Operator * @class Operator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment