← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3892: Revert using unordered_map in Body.

 

------------------------------------------------------------
revno: 3892
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Wed 2016-06-08 19:05:34 +0200
message:
  Revert using unordered_map in Body.
modified:
  core/Body.hpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/Body.hpp'
--- core/Body.hpp	2016-06-07 21:03:47 +0000
+++ core/Body.hpp	2016-06-08 17:05:34 +0000
@@ -14,11 +14,6 @@
 #include "State.hpp"
 #include "Material.hpp"
 
-#if (BOOST_VERSION >= 105600)
-  #include <unordered_map>
-  #include <boost/serialization/unordered_map.hpp>
-#endif
-
 #include <lib/base/Math.hpp>
 #include <lib/serialization/Serializable.hpp>
 #include <lib/multimethods/Indexable.hpp>
@@ -31,11 +26,7 @@
 		// numerical types for storing ids
 		using id_t = int ;
 		// internal structure to hold some interaction of a body; used by InteractionContainer;
-#if (BOOST_VERSION >= 105600)
-		using MapId2IntrT = std::unordered_map<Body::id_t, shared_ptr<Interaction> >;
-#else
 		using MapId2IntrT = std::map<Body::id_t, shared_ptr<Interaction> >;
-#endif
 		// groupMask type
 
 		// bits for Body::flags