Skip to content

Commit

Permalink
[add] Fully support compiling on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
endyul committed Jan 8, 2015
1 parent f7b47d0 commit 0e2e512
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/utils/stringmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ namespace utility {
template <class T>
class StringMap {
public:
/*
#if defined(_MSC_VER)
typedef stdext::hash_map<const char *, T,
typedef std::unordered_map<const char *, T,
__Default_CharArray_HashFunction> internal_map_t;
#else
typedef std::tr1::unordered_map<const char *, T,
typedef std::unordered_map<const char *, T,
__Default_CharArray_HashFunction,
__Default_CharArray_EqualFunction> internal_map_t;
#endif // end for _WIN32
*/
typedef std::unordered_map<const char *, T> internal_map_t;
typedef typename internal_map_t::iterator iterator;
typedef typename internal_map_t::const_iterator const_iterator;

Expand Down

0 comments on commit 0e2e512

Please sign in to comment.