From 42d683ade10954da6037f4a652aa77a9a1be18b7 Mon Sep 17 00:00:00 2001 From: ManifoldFR <wilson.jallet@polytechnique.org> Date: Sat, 4 May 2024 13:01:31 +0200 Subject: [PATCH] deprecation-policy.hpp : fix undefined symbol in some cases --- include/eigenpy/deprecation-policy.hpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/include/eigenpy/deprecation-policy.hpp b/include/eigenpy/deprecation-policy.hpp index f763065f..061cd801 100644 --- a/include/eigenpy/deprecation-policy.hpp +++ b/include/eigenpy/deprecation-policy.hpp @@ -56,11 +56,9 @@ template <DeprecationType deprecation_type = DeprecationType::DEPRECATION, class BasePolicy = bp::default_call_policies> struct deprecated_function : deprecation_warning_policy<deprecation_type, BasePolicy> { - static constexpr char defaultMsg[] = - "This function has been marked as deprecated, and will be " - "removed in the future."; - - deprecated_function(const std::string &msg = defaultMsg) + deprecated_function(const std::string &msg = + "This function has been marked as deprecated, and " + "will be removed in the future.") : deprecation_warning_policy<deprecation_type, BasePolicy>(msg) {} }; @@ -68,11 +66,9 @@ template <DeprecationType deprecation_type = DeprecationType::DEPRECATION, class BasePolicy = bp::default_call_policies> struct deprecated_member : deprecation_warning_policy<deprecation_type, BasePolicy> { - static constexpr char defaultMsg[] = - "This attribute or method has been marked as deprecated, and will be " - "removed in the future."; - - deprecated_member(const std::string &msg = defaultMsg) + deprecated_member(const std::string &msg = + "This attribute or method has been marked as " + "deprecated, and will be removed in the future.") : deprecation_warning_policy<deprecation_type, BasePolicy>(msg) {} }; -- GitLab