Skip to content

Commit 920ca30

Browse files
wip
1 parent fb8182a commit 920ca30

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

include/util/query_heap.hpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ template <typename NodeID, typename Key> class UnorderedMapStorage
124124
private:
125125
template <typename K, typename V>
126126
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>>>;
128128

129129
UnorderedMap<NodeID, Key> nodes;
130130
};
@@ -194,8 +194,7 @@ template <typename NodeID,
194194
typename Key,
195195
typename Weight,
196196
typename Data,
197-
typename IndexStorage = ArrayStorage<NodeID, NodeID>,
198-
bool ThreadLocal = true>
197+
typename IndexStorage = ArrayStorage<NodeID, NodeID>>
199198
class QueryHeap
200199
{
201200
private:
@@ -214,16 +213,13 @@ class QueryHeap
214213
}
215214
};
216215

217-
using AllocatorType = typename std::conditional<ThreadLocal,
218-
PoolAllocator<HeapData>,
219-
std::allocator<HeapData>>::type;
220216

221217

222218
using HeapContainer = boost::heap::d_ary_heap<HeapData,
223219
boost::heap::arity<4>,
224220
boost::heap::mutable_<true>,
225221
boost::heap::compare<std::greater<HeapData>>,
226-
boost::heap::allocator<AllocatorType>>;
222+
boost::heap::allocator<PoolAllocator<HeapData>>>;
227223
using HeapHandle = typename HeapContainer::handle_type;
228224

229225
public:

0 commit comments

Comments
 (0)