]> granicus.if.org Git - pdns/commitdiff
beginning of the removal of 'using namespace std'. Goal is to swap out string.
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 5 Feb 2011 17:39:43 +0000 (17:39 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 5 Feb 2011 17:39:43 +0000 (17:39 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1974 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/namespaces.hh

index 69a08cc0a1e86c62d4c27341f7ff3ac88ac4b575..5f13536dd1df821a8329a96315a85133efe39639 100644 (file)
 #include <boost/function.hpp>
 #include <boost/format.hpp>
 #include <boost/algorithm/string.hpp>
+#include <vector>
+#include <map>
+#include <set>
+#include <deque>
+#include <string>
+#include <iostream>
+
+using std::vector;
+using std::map;
+using std::pair;
+using std::make_pair;
+using std::runtime_error;
+using std::ostringstream;
+using std::set;
+using std::deque;
+using std::cerr;
+using std::cout;
+using std::clog;
+using std::endl;
+using std::ifstream;
+using std::ofstream;
+using std::ostream;
+using std::min; // these are a bit scary, everybody uses 'min'
+using std::max;
+
+namespace pdns {
+  typedef std::string string;  
+};
+
+typedef pdns::string string;
 
 using boost::lexical_cast;
 using boost::tie;