Skip to content
Snippets Groups Projects
Commit 14b0cad5 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

add namespaces in WOLF_REGISTER_SENSOR macro

parent 6d18a269
No related branches found
No related tags found
1 merge request!80Toward generic factory
......@@ -226,8 +226,8 @@ inline std::string Factory<SensorBase,
}
#define WOLF_REGISTER_SENSOR(SensorType, SensorName) \
const bool SensorName##Registered = \
wolf::SensorFactory::get().registerCreator(SensorType, SensorName::create); \
namespace wolf{ namespace{ const bool SensorName##Registered = \
SensorFactory::get().registerCreator(SensorType, SensorName::create); }}\
} /* namespace wolf */
......
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