@@ -124,7 +124,7 @@ template <typename NodeID, typename Key> class UnorderedMapStorage
124
124
private:
125
125
template <typename K, typename V>
126
126
using UnorderedMap = std::
127
- unordered_map<K, V/* , std::hash<K>, std::equal_to<K>, PoolAllocator<std::pair<const K, V>>*/ >;
127
+ unordered_map<K, V, std::hash<K>, std::equal_to<K>, PoolAllocator<std::pair<const K, V>>>;
128
128
129
129
UnorderedMap<NodeID, Key> nodes;
130
130
};
@@ -194,8 +194,7 @@ template <typename NodeID,
194
194
typename Key,
195
195
typename Weight,
196
196
typename Data,
197
- typename IndexStorage = ArrayStorage<NodeID, NodeID>,
198
- bool ThreadLocal = true >
197
+ typename IndexStorage = ArrayStorage<NodeID, NodeID>>
199
198
class QueryHeap
200
199
{
201
200
private:
@@ -214,16 +213,13 @@ class QueryHeap
214
213
}
215
214
};
216
215
217
- using AllocatorType = typename std::conditional<ThreadLocal,
218
- PoolAllocator<HeapData>,
219
- std::allocator<HeapData>>::type;
220
216
221
217
222
218
using HeapContainer = boost::heap::d_ary_heap<HeapData,
223
219
boost::heap::arity<4 >,
224
220
boost::heap::mutable_<true >,
225
221
boost::heap::compare<std::greater<HeapData>>,
226
- boost::heap::allocator<AllocatorType >>;
222
+ boost::heap::allocator<PoolAllocator<HeapData> >>;
227
223
using HeapHandle = typename HeapContainer::handle_type;
228
224
229
225
public:
0 commit comments