making conforming headers.

Steven King sxking@uswest.net
Fri May 5 00:49:00 GMT 2000


On Fri, 05 May 2000, Martin v. Loewis wrote:

> I believe the restriction in 17.4.4.1/3, as well as annex D.5, is
> mostly a non-requirement, because of the as-if rule. Can you give an
> example where using /usr/include C library name.h headers violates any
> of the requirements? I'm asking for a violation that can be detected
> with a C++ program; not one that is detected by looking at the sources
> of the headers in an editor.

would this not do the trick:

#include <string.h>

namespace foo
{
    using std::strlen;
}

int
main ()
{
}


 -- 
Steven King
sxking@uswest.net


More information about the Libstdc++ mailing list