summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-09-09 11:52:18 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-09-09 13:23:35 -0400
commitf1e09016d390badbfd9d1c75ed7683c12fb45c10 (patch)
tree2e8648f58c45f9f2750265255de79c5e4482a455 /src/mongo/platform
parent05c383947bf3d3d1ad0419ec3304e0e2bdf22ea3 (diff)
downloadmongo-f1e09016d390badbfd9d1c75ed7683c12fb45c10.tar.gz
Add MONGO_HASH_NAMESPACE macro for use in implementing std::hash<T>.
Diffstat (limited to 'src/mongo/platform')
-rw-r--r--src/mongo/platform/hash_namespace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/platform/hash_namespace.h b/src/mongo/platform/hash_namespace.h
index d11ad84f5ca..652887c7002 100644
--- a/src/mongo/platform/hash_namespace.h
+++ b/src/mongo/platform/hash_namespace.h
@@ -24,6 +24,7 @@
#define MONGO_HASH_NAMESPACE_START namespace std {
#define MONGO_HASH_NAMESPACE_END }
+#define MONGO_HASH_NAMESPACE std
#elif defined(_MSC_VER) && _MSC_VER >= 1500
@@ -33,6 +34,7 @@
#define MONGO_HASH_NAMESPACE_START namespace std {
#define MONGO_HASH_NAMESPACE_END }
+#define MONGO_HASH_NAMESPACE std
#else /* Older Visual Studio */
@@ -40,6 +42,7 @@
#define MONGO_HASH_NAMESPACE_START namespace std { namespace tr1 {
#define MONGO_HASH_NAMESPACE_END }}
+#define MONGO_HASH_NAMESPACE std::tr1
#endif
@@ -49,6 +52,7 @@
#define MONGO_HASH_NAMESPACE_START namespace std { namespace tr1 {
#define MONGO_HASH_NAMESPACE_END }}
+#define MONGO_HASH_NAMESPACE std::tr1
#else
#error "Cannot determine namespace for 'hash'"