[OT] Re: g++ namespace std & BUG?

Gregory Martin Pfeil pfeilgm@xmlglobal.com
Thu Aug 23 09:30:00 GMT 2001


On Thu, Aug 23, 2001 at 06:19:14PM +0200, Carlo Wood wrote:
> 
> Either use:
> 
>   std::cout << "blah";
> 
> or
> 
> using std::cout;
> // ...
>   cout << "blah";
...
> I prefer method one ;).

Just to mention some personal style . . .

I use method one exclusively in header files (don't want an include to
corrupt someone's class), and method two in implementation files.
It saves a bit of typing, and I don't have to worry about forgetting
it anywhere.
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7hS+nwC1urNfUT7URAlwSAKCGGt5PARtPYLZUfErmDCDZR1bYegCfXBNe
abiiOvuNuOqKe2fUdUjSxTY=
=YAfv
-----END PGP SIGNATURE-----


More information about the Libstdc++ mailing list