class A {}
class B : public A {}
void proceed(vector<A*&in);
void main() {
vector<B*a;
proceed(a); // <-- error here! why?
}
Where is the problem?
I try any static_cast and others but nothing.
There is nothing to produce a problem because elements in any case are
pointers and basically we upcast all elements of vector a. Where is the
problem?