diff --git a/Sofa/framework/Config/src/sofa/Modules.h b/Sofa/framework/Config/src/sofa/Modules.h index d7d39a8bf56..c65a6bdbeaa 100644 --- a/Sofa/framework/Config/src/sofa/Modules.h +++ b/Sofa/framework/Config/src/sofa/Modules.h @@ -32,7 +32,7 @@ struct Module ## name\ {\ private:\ - inline static const char* moduleName = fullModuleName;\ + static constexpr const char* moduleName = fullModuleName;\ public:\ Module ## name() = default;\ Module ## name(const Module ## name&) = delete;\ @@ -51,7 +51,7 @@ inline struct ModuleSofa { private: - inline static const char* moduleName = "Sofa"; + static constexpr const char* moduleName = "Sofa"; public: ModuleSofa() = default; ModuleSofa(const ModuleSofa&) = delete;