Got rid of most using directives. Ported tests to python.
[invirt/third/libt4.git] / config.cc
index 374757f..4931a9f 100644 (file)
--- a/config.cc
+++ b/config.cc
@@ -1,6 +1,8 @@
 #include "config.h"
 #include "handle.h"
 
+using std::vector;
+
 // The config module maintains views. As a node joins or leaves a
 // view, the next view will be the same as previous view, except with
 // the new node added or removed. The first view contains only node
@@ -160,7 +162,7 @@ void config::heartbeater() {
         }
 
         // who has the smallest ID?
-        string m = min(me, *min_element(cmems.begin(), cmems.end()));
+        string m = std::min(me, *std::min_element(cmems.begin(), cmems.end()));
 
         if (m == me) {
             // ping the other nodes