Re: header file help......



True; in most systems I work in, the use of the pointer means that methods or most
importantly virtual methods of the class will be called, and therefore the header is
needed anyway.
joe

On Tue, 03 Jul 2007 09:35:21 -0500, David Wilkinson <no-reply@xxxxxxxxxxxx> wrote:

Joseph M. Newcomer wrote:

Compilation time is an irrelevant consideration in the presence of #pragma once.
Therefore, it should never enter the discussion at all.

Joe:

#pragma once only prevents multiple inclusion in the same translation
unit. When you include headers in headers, changing the included header
can result in the recompilation of many translation units, perhaps
including some that do not need the header at all.

For large projects this can indeed substantially (and unnecessarily)
increase build times.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Header Files and Interfaces Yet Again
    ... I get a foo.h user's header file ... Java's assignments are pointer assignments. ... If for some reason I'm forced to violate ...
    (comp.lang.cpp)
  • Re: Separated headers
    ... and now I want to separate headers from code. ... I guess I need one more pointer in the header like this: ... \>XXXX and XXXX> move to and from a specific data area, ...
    (comp.lang.forth)
  • Re: komplexes Problem mit Funktionszeigern
    ... Es sind Header vorhanden, ... Pointer aufgerufen wird. ... So unterschiedlich sind diese Konventionen offensichtlich nicht. ... Schnittstelle besitzen, und für diese Schnittstelle passende Header ...
    (de.comp.lang.c)
  • Re: error 12115 and how to delete a smart blob
    ... An internal error probably occurred and corrupted the LO header. ... i found the line of my table where the corrupted blob is (the ... fail, same error. ... binary vi and/or whatever else to zero out the pointer completely. ...
    (comp.databases.informix)
  • Re: vwait doesnt return after setting TCL_SetVar from a thread
    ... data (TCL_interp pointer) this is your code: ... } EventData; ... The 'header' should not be a pointer. ...
    (comp.lang.tcl)