summaryrefslogtreecommitdiff
path: root/include/hash_map.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-12 18:17:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-12 18:17:28 +0000
commit06a25cab68a58a4c9e985a394590b3288de33723 (patch)
tree33d4766c59b104c386c9f1a2f14e4483924c75f1 /include/hash_map.h
parente56613b0035f2e9acf912af4ab68ad410100e1ea (diff)
Fix to allow namespace std { namespace tr1 {
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9893 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hash_map.h')
-rw-r--r--include/hash_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hash_map.h b/include/hash_map.h
index 345420fc2..3665d9b1a 100644
--- a/include/hash_map.h
+++ b/include/hash_map.h
@@ -22,16 +22,22 @@
#include <ext/hash_map>
/** Oddball linux namespace for hash_map */
#define nspace __gnu_cxx
+ #define BEGIN_HASHMAP_NAMESPACE namespace nspace {
+ #define END_HASHMAP_NAMESPACE }
#else
#include <tr1/unordered_map>
#define hash_map unordered_map
#define nspace std::tr1
+ #define BEGIN_HASHMAP_NAMESPACE namespace std { namespace tr1 {
+ #define END_HASHMAP_NAMESPACE } }
#endif
#else
#include <hash_map>
#define nspace stdext
/** Oddball windows namespace for hash_map */
using stdext::hash_map;
+ #define BEGIN_HASHMAP_NAMESPACE namespace nspace {
+ #define END_HASHMAP_NAMESPACE }
#endif