diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-10-18 21:54:38 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-10-18 21:54:38 +0400 |
commit | 39664ac8f48c44fa4a81ff63de7ff2d31a956b5e (patch) | |
tree | f0928f6ff3f63bb1f68ca0b08009173a9968d85d /search/edge_generator.hh | |
parent | 05e91def21d90d848b5f804f2fc9bd974bc496df (diff) |
Support arbitrary arity
Also, some windows fixes in util.
Diffstat (limited to 'search/edge_generator.hh')
-rw-r--r-- | search/edge_generator.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search/edge_generator.hh b/search/edge_generator.hh index 43f257929..582c78b7b 100644 --- a/search/edge_generator.hh +++ b/search/edge_generator.hh @@ -22,7 +22,7 @@ class EdgeGenerator { EdgeGenerator() {} PartialEdge AllocateEdge(Arity arity) { - return partial_edge_pool_.Allocate(arity); + return PartialEdge(partial_edge_pool_, arity); } void AddEdge(PartialEdge edge) { @@ -47,7 +47,7 @@ class EdgeGenerator { } private: - PartialEdgePool partial_edge_pool_; + util::Pool partial_edge_pool_; typedef std::priority_queue<PartialEdge> Generate; Generate generate_; |