Permalink
Browse files

gsdx: Remove "using namespace std"

  • Loading branch information...
turtleli authored and gregory38 committed May 26, 2017
1 parent 82d1aba commit fe2dfdb3b9b27fb6e28cd725cac09d83c95d7e75
Showing with 0 additions and 3 deletions.
  1. +0 −3 plugins/GSdx/stdafx.h
View
@@ -118,9 +118,6 @@ typedef int64 sint64;
#include <mutex>
#include <condition_variable>
#include <functional>
using namespace std;
#include <memory>
#include <zlib.h>

3 comments on commit fe2dfdb

@hockland

This comment has been minimized.

Show comment
Hide comment
@hockland

hockland Sep 8, 2017

What's wrong with having "using namespace std;"

Just about every programmer out there uses that so that you don't have to type all the :: stuff.

hockland replied Sep 8, 2017

What's wrong with having "using namespace std;"

Just about every programmer out there uses that so that you don't have to type all the :: stuff.

@ssakash

This comment has been minimized.

Show comment
Hide comment
@ssakash

ssakash Sep 8, 2017

Member

It's generally not a good practice to use using namespace x in your code, it could lead to various conflicts when multiple namespaces are used without any explicit prefix in the namespace functions.

Here's a nice example of such issues: https://stackoverflow.com/questions/2712076/how-to-use-an-iterator

Member

ssakash replied Sep 8, 2017

It's generally not a good practice to use using namespace x in your code, it could lead to various conflicts when multiple namespaces are used without any explicit prefix in the namespace functions.

Here's a nice example of such issues: https://stackoverflow.com/questions/2712076/how-to-use-an-iterator

@hockland

This comment has been minimized.

Show comment
Hide comment
@hockland

hockland Sep 8, 2017

hockland replied Sep 8, 2017

Please sign in to comment.