T
Thomas Grund
Hi,
On the website
http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4
the following is written:
"The C++ standard library is guaranteed to have 18 standard headers from
the C language. These headers come in two standard flavors, <cxxx> and
<xxx.h> (where xxx is the basename of the header, such as stdio, stdlib,
etc). These two flavors are identical except the <cxxx> versions provide
their declarations in the std namespace only, and the <xxx.h> versions
make them available both in std namespace and in the global namespace."
Based on this the following code should compile but it does not with
several compilers (including Comeau):
#include <stdio.h>
int main()
{
std:
rintf("hallo\n");
}
Is it right that the statement should be that the <cxxx> versions provide
their declarations in the std namespace and the global namespace and the
<xxx.h> versions make them available in the global namespace only??
Thanks a lot,
Thomas
On the website
http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4
the following is written:
"The C++ standard library is guaranteed to have 18 standard headers from
the C language. These headers come in two standard flavors, <cxxx> and
<xxx.h> (where xxx is the basename of the header, such as stdio, stdlib,
etc). These two flavors are identical except the <cxxx> versions provide
their declarations in the std namespace only, and the <xxx.h> versions
make them available both in std namespace and in the global namespace."
Based on this the following code should compile but it does not with
several compilers (including Comeau):
#include <stdio.h>
int main()
{
std:
}
Is it right that the statement should be that the <cxxx> versions provide
their declarations in the std namespace and the global namespace and the
<xxx.h> versions make them available in the global namespace only??
Thanks a lot,
Thomas