Skip to content
Snippets Groups Projects
Commit 576a6081 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

debugging

parent c6f5696c
No related branches found
No related tags found
2 merge requests!451After cmake and const refactor,!445Resolve "Refactoring WOLF installation system"
Pipeline #10672 canceled
......@@ -335,12 +335,18 @@ inline Factory<TypeBase, TypeInput...>::~Factory<TypeBase, TypeInput...>()
template<class TypeBase, typename... TypeInput>
inline bool Factory<TypeBase, TypeInput...>::registerCreator(const std::string& _type, CreatorCallback createFn)
{
printCallbacks();
printAddress();
bool reg = get().callbacks_.insert(typename CallbackMap::value_type(_type, createFn)).second;
if (reg)
std::cout << std::setw(26) << std::left << get().getClass() << " <-- registered " << _type << std::endl;
else
std::cout << std::setw(26) << std::left << get().getClass() << " X-- skipping " << _type << ": already registered." << std::endl;
printCallbacks();
printAddress();
return reg;
}
......
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