Skip to content
Permalink
Browse files

Ensure std::unordered_ will be used on supported MSVC compilers

  • Loading branch information
gregorycu authored and nerzhul committed Oct 8, 2016
1 parent ad163ee commit 3de9ae4e6054bb420bea8ad5621a0b76552a3621
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/util/cpp11_container.h
@@ -21,6 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define MT_CPP11CONTAINER_HEADER

#if __cplusplus >= 201103L
#define USE_UNORDERED_CONTAINERS
#endif

#if _MSC_VER >= 1800
#define USE_UNORDERED_CONTAINERS
#endif

#ifdef USE_UNORDERED_CONTAINERS
#include <unordered_map>
#include <unordered_set>
#define UNORDERED_MAP std::unordered_map

0 comments on commit 3de9ae4

Please sign in to comment.
You can’t perform that action at this time.