Last change
on this file was
11018,
checked in by westram, 11 years ago
|
- added compatibility wrapper for unordered_map (arb_unordered_map)
- use arb_unordered_map somewhere
|
File size:
1.2 KB
|
Line | |
---|
1 | // ================================================================ // |
---|
2 | // // |
---|
3 | // File : arb_unordered_map.h // |
---|
4 | // Purpose : compatibility wrapper for unordered_map // |
---|
5 | // // |
---|
6 | // Coded by Ralf Westram (coder@reallysoft.de) in November 2013 // |
---|
7 | // Institute of Microbiology (Technical University Munich) // |
---|
8 | // http://www.arb-home.de/ // |
---|
9 | // // |
---|
10 | // ================================================================ // |
---|
11 | |
---|
12 | #ifndef ARB_UNORDERED_MAP_H |
---|
13 | #define ARB_UNORDERED_MAP_H |
---|
14 | |
---|
15 | // this header can be eliminated when arb EXPECTS Cxx11 |
---|
16 | |
---|
17 | #ifdef DARWIN |
---|
18 | // fallback to std:map on DARWIN |
---|
19 | // workaround compilation problems on Maverick (osx) |
---|
20 | # include <map> |
---|
21 | # define arb_unordered_map std::map |
---|
22 | #else |
---|
23 | # ifdef Cxx11 |
---|
24 | # include <unordered_map> |
---|
25 | # define arb_unordered_map std::unordered_map |
---|
26 | # else |
---|
27 | # include <tr1/unordered_map> |
---|
28 | # define arb_unordered_map std::tr1::unordered_map |
---|
29 | # endif |
---|
30 | #endif |
---|
31 | |
---|
32 | #else |
---|
33 | #error arb_unordered_map.h included twice |
---|
34 | #endif // ARB_UNORDERED_MAP_H |
---|
Note: See
TracBrowser
for help on using the repository browser.