Why isn't this working? it says there's no matching function.
Code://Have these classes (elided methods) class Base { public: Base(string name) {...} }; class Derived : public Base { public: Derived(String name) : Base( name ) {...} }; void create(std::vector<Base>& arr) { ... } int main() { std::vector<Derived> arr; create( arr ); }