Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove static for maps from Factory.hh #635

Merged
merged 8 commits into from
Mar 19, 2021
6 changes: 2 additions & 4 deletions include/ignition/gazebo/components/Factory.hh
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,11 @@ namespace components
private: std::map<ComponentTypeId, StorageDescriptorBase *> storagesById;

/// \brief A list of IDs and their equivalent names.
/// \detail Make it non-static on version 2.0.
public: inline static std::map<ComponentTypeId, std::string> namesById;
public: std::map<ComponentTypeId, std::string> namesById;

/// \brief Keep track of the runtime names for types and warn the user if
/// they try to register different types with the same typeName.
/// \detail Make it non-static on version 2.0.
public: inline static std::map<ComponentTypeId, std::string>
public: std::map<ComponentTypeId, std::string>
runtimeNamesById;
};

Expand Down