]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2202] Don't use namespace std
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 26 Sep 2012 09:16:51 +0000 (11:16 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 26 Sep 2012 09:16:51 +0000 (11:16 +0200)
Because of fear of possible future collisions.

src/lib/util/threads/lock.cc
src/lib/util/threads/tests/lock_unittest.cc
src/lib/util/threads/thread.cc

index a495199e7c6c06a94237145e8f71d6276431bde2..f15052e0035a7113f29a8cb655cb58b93f42519c 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <pthread.h>
 
-using namespace std;
+using std::auto_ptr;
 
 namespace isc {
 namespace util {
index 3a5701255c29fcffadcc669a0429e2a423ed19dc..7ffc65416e34b57207b0843e36e1ac2f042410fe 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <boost/bind.hpp>
 
-using namespace std;
 using namespace isc::util::thread;
 
 namespace {
index 34c9427f243d7210b2be3ed7ef67136a460653ce..d5154039454d4f170b57ea3978db07176647d04d 100644 (file)
@@ -22,7 +22,9 @@
 
 #include <pthread.h>
 
-using namespace std;
+using std::string;
+using std::exception;
+using std::auto_ptr;
 
 namespace isc {
 namespace util {