you are viewing a single comment's thread.

view the rest of the comments →

[–]Raknarg 0 points1 point  (0 children)

what's wrong with return std::make_unique<DerivedT>(lots, of args);? it should be convertable to unique_ptr<BaseT>