Re: #includes
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Thu, 11 Jan 2007 18:00:05 -0500
Neil B <NeilB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Class A has a variable in it's header which is Class B. Class B has a
variable in it's header which is Class A. How do you approach this
so your not chasing your tail??
You don't get into this situation in the first place. Think about it -
what would sizeof(A) be? Class A should be big enough to hold an
instance of B, which in turn should be big enough to hold an instance of
A, which should be big enough to ...
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: #includes
- From: Ben Voigt
- Re: #includes
- Prev by Date: Re: How to cooperate on a project over the internet?
- Next by Date: Re: #includes
- Previous by thread: How to cooperate on a project over the internet?
- Next by thread: Re: #includes
- Index(es):
Relevant Pages
|