On A.h
i do not have to #include
anything or use namespace for anything.
On the other header, B.h
i have to include vector
and using namespace std
. Both of this headers are not linked. Seems to be a file problem. When i copy the contents of A.h
(without any problems) to B.h
, i still get a compiler error saying string
is not a type name and vector
is not a template although the compiler did not state anything when the same content was on A.h
. I am coding c++ on visual studio. What is going on?