I want to create a generic function which gets vector types as argument. Derived1, Derived2, ... are derived (simply) from Base
I tried something like this: int function (vector& foo) It didn't work. Could you tell me, what is the best generic solution for this problem?