Lugdunum  0.1.0
Handler.inl
Go to the documentation of this file.
1 template<typename T, typename... Args>
2 inline T* makeHandler(const std::string& handlerName, Args&&... args) {
3  std::unique_ptr<T> handler = std::make_unique<T>(handlerName, std::forward<Args>(args)...);
4  T* handlerRawPtr = handler.get();
5  LoggingFacility::registerHandler(handlerName, std::move(handler));
6  return handlerRawPtr;
7 }
T * makeHandler(const std::string &handlerName, Args &&... args)
Definition: Handler.inl:2