Skip to content
Snippets Groups Projects
Commit 6f7489cd authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix undefined reference to aron enums (triggered in armem_skills)

parent 2312e7e6
No related branches found
No related tags found
1 merge request!135Resolve "Add Grasp (Affordance) Memory"
...@@ -59,7 +59,7 @@ namespace armarx::aron::cppserializer::serializer ...@@ -59,7 +59,7 @@ namespace armarx::aron::cppserializer::serializer
for (const auto& [key, value] : typenavigator->getAcceptedValueMap()) for (const auto& [key, value] : typenavigator->getAcceptedValueMap())
{ {
std::string enumKeyWithNamespace = std::string(IMPL_ENUM) + "::" + key; std::string enumKeyWithNamespace = std::string(IMPL_ENUM) + "::" + key;
fields.push_back(std::make_shared<CppField>("const static " + std::string(IMPL_ENUM), key + " = " + enumKeyWithNamespace)); fields.push_back(std::make_shared<CppField>("static constexpr " + std::string(IMPL_ENUM), key + " = " + enumKeyWithNamespace));
enum_to_name << "\t\t{" << enumKeyWithNamespace << ", \"" << key << "\"}," << std::endl; enum_to_name << "\t\t{" << enumKeyWithNamespace << ", \"" << key << "\"}," << std::endl;
name_to_enum << "\t\t{\"" << key << "\", " << enumKeyWithNamespace << "}," << std::endl; name_to_enum << "\t\t{\"" << key << "\", " << enumKeyWithNamespace << "}," << std::endl;
......
...@@ -66,6 +66,6 @@ namespace armarx::aron::cppserializer::serializer ...@@ -66,6 +66,6 @@ namespace armarx::aron::cppserializer::serializer
private: private:
// Members // Members
static const std::map<std::string, std::pair<std::string, int>> ACCEPTED_TYPES; static const std::map<std::string, std::pair<std::string, int>> ACCEPTED_TYPES;
static constexpr const char* IMPL_ENUM = "__ImplEnum"; static constexpr const char* IMPL_ENUM = "ImplEnum";
}; };
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment