This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[OT] Re: g++ namespace std & BUG?
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.
PGP signature