From 4fe09b47745929a9d7c5d35c4181cefe1a5f6227 Mon Sep 17 00:00:00 2001 From: Charles Villard <charles.villard@cea.fr> Date: Thu, 20 Mar 2025 15:20:28 +0100 Subject: [PATCH] edit: Operator.hpp: preprocessor check compiler for compatibility --- include/aidge/operator/Operator.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/aidge/operator/Operator.hpp b/include/aidge/operator/Operator.hpp index a145aab06..f4a814261 100644 --- a/include/aidge/operator/Operator.hpp +++ b/include/aidge/operator/Operator.hpp @@ -67,8 +67,16 @@ enum class InputCategory : unsigned int { OptionalParam = (1 << 2) | Optional, /**< Optional parameter input. */ All = static_cast<unsigned int>(-1) }; + + +#ifdef __WINDOWS__ +template <> +constexpr bool enable_bitmask_operators<InputCategory> = true; +#else template <> inline constexpr bool enable_bitmask_operators<InputCategory> = true; +#endif + /** * @class Operator -- GitLab