I know we can insulate a class by using pointer so that the header of the class is not required in header, e.g.:
class B;
class A{
B* b;
};
It prevents #include "B.h" in A.h. Now I want to prevent
#include <vector>
in header, so I try to copy the syntax, use a pointer of vector:
class std::vector<B*>;
class A{
std::vector<B*>* v;
};
but it failed to compile, is it possible to prevent include vector header by using pointer of vector?