Use template parameter as return type
With this change one has to explicitly select unique_ptr and shared_ptr. This allows to also use the factory with types having value semantics. The result type could be, e.g. std::function<...> and the implementation types would need to have a proper signature.
Loading
Please register or sign in to comment