summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authormetagoto <runpac314@gmail.com>2009-10-18 08:35:03 +0800
committerEliot <eliot@10gen.com>2009-10-18 09:39:08 +0800
commit14cd7183e68da45332df74618e7df2e584ade0f2 (patch)
tree0d48ab66681810de3de934c0563d306987ae4af3 /stdafx.h
parentb8963886b76a016725ae379a58b3c32ef519163c (diff)
downloadmongo-14cd7183e68da45332df74618e7df2e584ade0f2.tar.gz
quick fix for global namespace pollution (mostly client)
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/stdafx.h b/stdafx.h
index 568e35682cf..54b5f9798b3 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -23,6 +23,8 @@
namespace mongo {
+ using namespace std;
+
#define NOMINMAX
#if defined(_WIN32)
@@ -85,7 +87,7 @@ namespace mongo {
#include "string.h"
#include "limits.h"
-using namespace std;
+///using namespace std;
#undef yassert
#include <boost/archive/iterators/base64_from_binary.hpp>
@@ -117,7 +119,10 @@ using namespace std;
#undef assert
#define assert xassert
#define yassert 1
-using namespace boost::filesystem;
+
+namespace mongo {
+ using namespace boost::filesystem;
+}
#include "util/debug_util.h"
#include "util/goodies.h"