From 9d090498c28b854fe1cced013215a31617f21c82 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..edaeaf42c 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 _MSC_VER
+template <>
+constexpr bool enable_bitmask_operators<InputCategory> = true;
+#else
 template <>
 inline constexpr bool enable_bitmask_operators<InputCategory> = true;
+#endif
+
 
 /**
  * @class Operator
-- 
GitLab