Commit 09157a57 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

Registry: add an `addToManagers` function

This free function helps with calling `Registry` reliably without having
to manually spell out the manager types for the `Registry` constructor.
parent f6190b1c
......@@ -430,6 +430,13 @@ public:
};
#endif
template<typename Registrar, typename... Manager>
static Registry<Registrar, Manager...> addToManagers(const std::shared_ptr<Manager>&... manager)
{
return Registry<Registrar, Manager...>(manager...);
}
} // namespace plugin
} // namespace smtk
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment