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



_______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to