Niklas Angare(deleted)
11/24/2008 4:12 PM
post17223
|
The following simple examples reveal header bugs in QNX 6.4.0 when compiled with QCC (no options).
#include <cwchar>
int main()
{
wchar_t c = WEOF; // error: 'wint_t' was not declared in this scope
return 0;
}
The WEOF macro assumes wint_t is accessible without specifying std:: which is not necessarily the case.
#include <cstdarg>
int main()
{
std::va_list list; //error: 'va_list' is not a member of 'std'
return 0;
}
Just for reference, allow me to quote the C++ standard:
"..the contents of each header cname shall be the same as that of the corresponding header name.h, as specified in the
C99 standard Library ... as appropriate, as if by inclusion. In the C++ standard library, however, the declarations
(except for names which are defined as macros in C) are within namespace scope of the namespace std. It is unspecified
whether these names are first declared within the global namespace scope and are then injected into namespace std by
explicit using-declarations."
|
|
|