Mailinglist Archive: opensuse (4288 mails)

< Previous Next >
Re: re[2]: [SLE] Visual C++
  • From: Alexandr Malusek <Alexandr.Malusek@xxxxxxxxxx>
  • Date: 18 May 2002 19:29:11 +0200
  • Message-id: <86y9ehe55k.fsf@xxxxxxxxxxxxxxxxx>
"Karol Pietrzak" <noodlez84@xxxxxxxxxxxxx> writes:

> ISO C++ does _not_ have ANY headers that end with ".h". e.g,
> iostream, not iostream.h. vector, not vector.h

I strongly suggest you read the C++ standard (ISO/IEC 14882:1998(E).
The following is a copy of the section D.5:

************************************************************************
D.5 Standard C library headers

For compatibility with the Standard C library, the C++ Standard
library provides the 18 C headers, as shown in Table 100:

Table 100 C Headers

<assert.h> <iso646.h> <setjmp.h> <stdio.h> <wchar.h> <ctype.h>
<limits.h> <signal.h> <stdlib.h> <wctype.h> <errno.h> <locale.h>
<stdarg.h> <string.h>
************************************************************************

To avoid misunderstanding, I also include the note 160:

: The ".h" headers dump all their names into the global namespace,
: whereas the newer forms keep their names in namespace
: std. Therefore, the newer forms are the preferred forms for all uses
: except for C++ programs which are intended to be strictly
: compatible with C.

--
Alexandr.Malusek@xxxxxxxxxx

< Previous Next >
Follow Ups
References