From 91e3542537a715937fdc80ebe3247deeefdf2167 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Thu, 20 Feb 2025 08:24:12 +0000 Subject: [PATCH] Fix Pad compilation for clang. --- include/aidge/operator/Pad.hpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/include/aidge/operator/Pad.hpp b/include/aidge/operator/Pad.hpp index de7c3d2b2..0880b2c97 100644 --- a/include/aidge/operator/Pad.hpp +++ b/include/aidge/operator/Pad.hpp @@ -35,19 +35,6 @@ enum class PadAttr { BorderType, ///< Type of border handling during padding. BorderValue ///< Value to be used for constant padding. }; - -namespace { - /** - * @brief EnumStrings specialization for PadAttr. - */ - template <> - const char* const EnumStrings<Aidge::PadAttr>::data[] = { - "begin_end_borders", - "border_type", - "border_value" - }; -} // namespace - /** * @enum PadBorderType * @brief Types of border handling available for padding. @@ -59,7 +46,20 @@ enum class PadBorderType { Wrap, ///< Values wrap around the tensor dimensions. Zero ///< All out-of-bound values are set to 0. }; + } // namespace Aidge + +namespace { + /** + * @brief EnumStrings specialization for PadAttr. + */ + template <> + const char* const EnumStrings<Aidge::PadAttr>::data[] = { + "begin_end_borders", + "border_type", + "border_value" + }; + /** * @brief EnumStrings specialization for PadBorderType. */ @@ -71,6 +71,8 @@ const char* const EnumStrings<Aidge::PadBorderType>::data[] = { "Wrap", "Zero" }; +} // namespace + namespace Aidge { /** * @class Pad_Op -- GitLab