namespace issues with old C headers

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Apr 15 08:03:00 GMT 2003


Joe Buck <jbuck@synopsys.com> writes:

| On Sat, Apr 12, 2003 at 08:47:21PM +0200, Gabriel Dos Reis wrote:
| > The standard isn't silent: It explicitly says that a standard header
| > can include another standard header.
| 
| And this leads to accidental portability problems. 

Yes, and the following is *known* not to be portable: 

  #include <iostream>
  
   int main()
   {
      std::cout << "Hello World\n";
   }

No need of assert() to demonstrate the problem.


-- Gaby



More information about the Libstdc++ mailing list