Re: circular dependencies and typedefs
From: David Harmon (source_at_netcom.com.invalid)
Date: 07/07/04
- Next message: beliavsky_at_aol.com: "Re: Difference between 1998 and 2003 C++ standard"
- Previous message: Alf P. Steinbach: "Re: Class with all static members --> Is namespace() the right choice?"
- In reply to: Dylan: "circular dependencies and typedefs"
- Next in thread: Dylan: "Re: circular dependencies and typedefs"
- Reply: Dylan: "Re: circular dependencies and typedefs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 07 Jul 2004 17:09:18 GMT
On Wed, 07 Jul 2004 16:12:55 +0100 in comp.lang.c++, Dylan
<spaldeen@ontheball.com> wrote,
>Is there a way of declaring the following without making A::m_b a
>pointer or a reference?
(example snipped)
Yes. Class A has a member B, so it needs #include "B.h" before the
class A definition and not just a forward declaration of B.
B has only indirect mention of A, so the forward declaration works
there. Of course if B tried to contain a member A, you would have an
impassability.
- Next message: beliavsky_at_aol.com: "Re: Difference between 1998 and 2003 C++ standard"
- Previous message: Alf P. Steinbach: "Re: Class with all static members --> Is namespace() the right choice?"
- In reply to: Dylan: "circular dependencies and typedefs"
- Next in thread: Dylan: "Re: circular dependencies and typedefs"
- Reply: Dylan: "Re: circular dependencies and typedefs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|