Re: [Fresco-devel] Suggested addition to Coding Style-guide

Gabriel Dos Reis <[email protected]> 13 Apr 2003 02:12:46 +0200
Newsgroups gmane.comp.video.fresco.devel
Organization Integrable Solutions
Message-ID <[email protected]>
Neil Pilgrim <[email protected]> writes:

[...]

| > I didn't realise that "regular" gcc supports precompiled headers these
| > days. Since when is that the case?
| 
| AFAIKnew this was just a branch somewhere, not mainstream...I'd be
| interested if its not :)

GCC mainline has support for PCH.

| > > A frightening downside of forward declaring "by hand" is the same as
| > > why you don't want code-duplication: Every minor change needs to be
| > > done at zillions of places, whereas including a forward declaration
| > > header keeps the changes in one place.
| > 
| > I think this is a reasonable point. A decent place to draw the line
| > for Fresco may be one file per directory, since for the most part
| > things are fairly well compartmentalized.
| 
| Of course this is parallel to iosfwd, which I thought the main reason
| for using was since there was the issue with templates and typedef's,
| not for the code-duplication reason above.

Well, it wasn't much that for the typedef issue -- what you say above
is an "a posteriori" reason.  The primary reason for <iosfwd> was to
break dependency.

-- Gaby