X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/d9fabc892aa327eabb9cae3e2fa7f5f330077220..4d5ec9803b74d0f3e9c002a92a748bd08b6640ac:/process.h diff --git a/process.h b/process.h index c9873e0..f01c3c6 100644 --- a/process.h +++ b/process.h @@ -1,20 +1,11 @@ #ifndef PROCESS_H #define PROCESS_H -#define USE_UNORDERED_MAP 1 -//#undef USE_UNORDERED_MAP - #include #include -#ifdef USE_UNORDERED_MAP -# include -# define MAP_TEMPLATE std::unordered_map -#else -# include -# define MAP_TEMPLATE std::map -#endif +#include #include -#include +#include #include #include "communicator.h" #include "misc.h" @@ -102,7 +93,7 @@ private: static std::atomic convergence_counter; - typedef MAP_TEMPLATE rev_neigh_type; + typedef std::unordered_map rev_neigh_type; neigh_type neigh; // list of neighbors (do not alter // after construction!) rev_neigh_type rev_neigh; // map msg_host_t -> neighbor