This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: making conforming headers.
- To: sxking at uswest dot net
- Subject: Re: making conforming headers.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 5 May 2000 00:36:58 +0200
- CC: libstdc++ at sourceware dot cygnus dot com
- References: <00050414595000.00702@rigel.eutopia.com>
> The standard requires that a library C++ header only include other
> C++ headers (17.4.4.1). Is anybody looking at what it is going to
> take to do this?
I think this is already the case. All headers processed by a C++
compiler are C++ headers, perhaps with the exception of the headers in
Annex D.5; which is a C header. Please note that it nowhere says that
a C header is not C++ header.
Anyway, 17.4.4.1/1 does not say 'only'; it gives a permission (to
include other headers), instead of imposing a restriction (to include
only C++ headers, in whatever way you could distinguish them from
other headers).
Even if this was meant as a restriction, I'd claim you could still
include C headers in a C++ header, under the as-if rule (1.9/1).
Regards,
Martin