From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Dos Reis To: pme@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: libstdc++/3026 Date: Thu, 07 Jun 2001 09:26:00 -0000 Message-id: <20010607162602.15105.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00231.html List-Id: The following reply was made to PR libstdc++/3026; it has been noted by GNATS. From: Gabriel Dos Reis To: "Catenazzi, Giacomo Amabile" Cc: Gabriel Dos Reis , cate@dplanet.ch, gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/3026 Date: 07 Jun 2001 18:23:31 +0200 "Catenazzi, Giacomo Amabile" writes: | Gabriel Dos Reis wrote: | > | > Giacomo Catenazzi writes: | > | > | Gabriel Dos Reis wrote: | > | | > | An other problem: Should '#include ' define functions/classes | > | in std namespace, without exporting it in global namespace? | > | Now and are the same, and both use global | > | namespace. | > | > There is nothing named specified by C++. The standard | > header defines its entities only in namespace std. I | > strongly suggest you stick to those standard interfaces. | > | | Ok. Sorry. Confused about different version of library. | BTW | . #include | . int foo(std::complex z) { | . return int(real(z)); | . } | This code will compile on http://www.codesourcery.com/gcc-compile.shtml | thus 'real' is in also on global namespace. No, the conclusion doesn't follow. `real' is in the standard namespace. It is found thanks to Koenig lookup. -- Gaby