From c73af0b804bdd07aec3438307d7a51f41203777c Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Mon, 19 Feb 2024 19:16:51 +0100 Subject: [PATCH] Fix clang compile issue --- include/aidge/data/Data.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/aidge/data/Data.hpp b/include/aidge/data/Data.hpp index cd7581acf..b73c3977f 100644 --- a/include/aidge/data/Data.hpp +++ b/include/aidge/data/Data.hpp @@ -56,8 +56,6 @@ public: private: const char* mType; }; - -inline auto format_as(DataType dt) { return EnumStrings<Aidge::DataType>::data[static_cast<int>(dt)]; } } namespace { @@ -82,4 +80,8 @@ const char* const EnumStrings<Aidge::DataType>::data[] "UInt7", "UInt8", "UInt16", "UInt32", "UInt64"}; } +namespace Aidge { +inline auto format_as(DataType dt) { return EnumStrings<Aidge::DataType>::data[static_cast<int>(dt)]; } +} + #endif /* AIDGE_DATA_H_ */ \ No newline at end of file -- GitLab