From 3b8e2a488bbec1a9738432570c88e66b6648f4f5 Mon Sep 17 00:00:00 2001 From: Lanchid Date: Tue, 4 Dec 2012 21:57:43 +0100 Subject: [PATCH] Fix for ticket 21. Fixed the map of the AtomicPropositionsLabeling class to std::unordered_map. --- src/models/AtomicPropositionsLabeling.h | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/src/models/AtomicPropositionsLabeling.h b/src/models/AtomicPropositionsLabeling.h index 0ed215a86..457d2f6a1 100644 --- a/src/models/AtomicPropositionsLabeling.h +++ b/src/models/AtomicPropositionsLabeling.h @@ -10,25 +10,9 @@ #include "src/storage/BitVector.h" #include - -/* Map types: By default, the boost hash map is used. - * If the macro USE_STD_MAP is defined, the default C++ class (std::map) - * is used instead. - */ -#ifdef USE_STD_MAP -# include -# define MAP std::map -#else -# ifdef USE_STD_UNORDERED_MAP -# include -# define MAP std::unordered_map -# else -# include "boost/unordered_map.hpp" -# define MAP boost::unordered_map -# endif -#endif - #include +#include +#include namespace mrmc { @@ -230,7 +214,7 @@ private: * by mapping the name to a specific index in the array of all * individual labelings. */ - MAP nameToLabelingMap; + std::unordered_map nameToLabelingMap; /*! * Stores all individual labelings. To find the labeling associated with