[bind10-dev] networking includes

Michal 'vorner' Vaner michal.vaner at nic.cz
Mon Jul 2 07:57:29 UTC 2012


Hello

On Sun, Jul 01, 2012 at 04:16:23PM +0000, Francis Dupont wrote:
> There is a drastic but efficient way to solve this: add OS dependent
> includes in the config.h (*) and of course include config.h (first!)
> in all files showing this kind of need. The clear drawback is to
> include too many but it is not as calling Ackermann's function in
> templates a la boost...

As you say, it is a drastic solution. Most of the .cc files we have don't use
any networking at all. Actually, most of the networking should be wrapped in
ASIO anyway. Personally, I think such solution lacks the basic levels of
elegance.

> Another question is whether to put the include for config.h in header
> (.h) files or code (.cc) files. IMHO it is clearly the second: header
> files should include only "internal" headers.

What do you mean by header files should include only internal headers? I never
heard about such policy and I don't think we follow it (there are many header
files including something from STL or Boost).

With regards

-- 
Java: Write once, run everywhere
Perl: Write once, run away
Perl6: Don't write, it DWYW

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20120702/03121a0b/attachment.bin>


More information about the bind10-dev mailing list