A
Ami
Hi All,
I have a header file(my_derived.h) in which I derive a class from another user defined class which exists in another header file (my_base.h). Is it possible to avoid including my_base.h in my_derived.h and still can resolve the reference?
My intention is to keep my_derived.h free of any include<> s.
When I include my_base.h in my_derived.cpp, I get
error C2504: 'my_base_class' : base class undefined
I am using Visual studio 2010 as IDE.
Any better suggestion to keep header files clean are highly appreciated.
Thanks in advance.
I have a header file(my_derived.h) in which I derive a class from another user defined class which exists in another header file (my_base.h). Is it possible to avoid including my_base.h in my_derived.h and still can resolve the reference?
My intention is to keep my_derived.h free of any include<> s.
When I include my_base.h in my_derived.cpp, I get
error C2504: 'my_base_class' : base class undefined
I am using Visual studio 2010 as IDE.
Any better suggestion to keep header files clean are highly appreciated.
Thanks in advance.