Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8457

Re: Optiamlly resolve user defined class used in header file

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: Optiamlly resolve user defined class used in header file
Date 2011-08-04 20:02 +1200
Message-ID <99v20tFar7U7@mid.individual.net> (permalink)
References <90b233d6-fa8e-4457-b70b-843b038a783c@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


On 08/ 4/11 07:45 PM, Ami wrote:
> 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?

No.

> My intention is to keep my_derived.h free of any include<>  s.

Why?

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Optiamlly resolve user defined class used in header file Ami <ver_amitabh@yahoo.com> - 2011-08-04 00:45 -0700
  Re: Optiamlly resolve user defined class used in header file Ian Collins <ian-news@hotmail.com> - 2011-08-04 20:02 +1200

csiph-web