Re: Parent <--> Child and header files
- From: Mateusz 'vArDo' Bilinski <vardo fr pl>
- To: "B.Hakvoort" <bart hakvoort be>
- Cc: gtkmm-list gnome org
- Subject: Re: Parent <--> Child and header files
- Date: Sat, 20 Nov 2004 22:08:45 +0100
Dnia 20-11-2004, sob o godzinie 22:01 +0100, B.Hakvoort napisał(a):
> Hi :)
>
> Didn't read your post completely (man, you've no idea how lazy iam :P),
> but i figured you may need signals.
> Check here:
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apb.html
>
> and/or read the recent discussion on the mailinglist about signals etc..
Thanks I'll take look.
> PS. i think you suffer from circular inclusion. Think about it, if A
> includes B and B includes A, then A also includes A and A includes B and
> B includes A... (*sound of bart going back to his beer* :P )
I use 'include-guards'. I mean every header files has got a the
beginning like this:
#ifndef MAINTOOLBAR_HH
#define MAINTOOLBAR_HH
...
#endif // MAINTOOLBAR_HH
Shouldn't this technique prevent from such circular inclusion?
vArDo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]