From: Bert Hubert Date: Sat, 5 Feb 2011 17:39:43 +0000 (+0000) Subject: beginning of the removal of 'using namespace std'. Goal is to swap out string. X-Git-Tag: auth-3.0~273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a30973404aa0c0141006abdc5c24401ed0b446f2;p=pdns beginning of the removal of 'using namespace std'. Goal is to swap out string. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1974 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/namespaces.hh b/pdns/namespaces.hh index 69a08cc0a..5f13536dd 100644 --- a/pdns/namespaces.hh +++ b/pdns/namespaces.hh @@ -10,6 +10,36 @@ #include #include #include +#include +#include +#include +#include +#include +#include + +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;