|
From: | Jeffrey Holle |
Subject: | Re: drawbacks of using namespace |
Date: | Wed, 18 May 2005 12:04:23 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 |
There are potentially problems completely opening a namespace.1. Potential name collitions can be avoided by using "using std::cout" style statements. 2. Some programmers may wish to deliberate express usage of resources using "std::cout" when needed.
It might just come down to style, or convenience... Christian Christmann wrote:
Hi, are there any drawbacks using "using namespace std" instead of defining the required namespaces like using std::cout separately? The first solution is a more convenient one since you just need one statement but can the code suffer from it?Chris
[Prev in Thread] | Current Thread | [Next in Thread] |