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

edit: Operator.hpp: preprocessor check compiler for compatibility

parent 09387973
No related branches found
No related tags found
No related merge requests found
Pipeline #68504 passed
......@@ -67,8 +67,16 @@ enum class InputCategory : unsigned int {
OptionalParam = (1 << 2) | Optional, /**< Optional parameter input. */
All = static_cast<unsigned int>(-1)
};
#ifdef _MSC_VER
template <>
constexpr bool enable_bitmask_operators<InputCategory> = true;
#else
template <>
inline constexpr bool enable_bitmask_operators<InputCategory> = true;
#endif
/**
* @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