Browse Source

[2202] Don't use namespace std

Because of fear of possible future collisions.
Michal 'vorner' Vaner 12 years ago
parent
commit
ac98e5dbf3

+ 1 - 1
src/lib/util/threads/lock.cc

@@ -23,7 +23,7 @@
 
 #include <pthread.h>
 
-using namespace std;
+using std::auto_ptr;
 
 namespace isc {
 namespace util {

+ 0 - 1
src/lib/util/threads/tests/lock_unittest.cc

@@ -19,7 +19,6 @@
 
 #include <boost/bind.hpp>
 
-using namespace std;
 using namespace isc::util::thread;
 
 namespace {

+ 3 - 1
src/lib/util/threads/thread.cc

@@ -22,7 +22,9 @@
 
 #include <pthread.h>
 
-using namespace std;
+using std::string;
+using std::exception;
+using std::auto_ptr;
 
 namespace isc {
 namespace util {