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.cc | |
parent | 05e91def21d90d848b5f804f2fc9bd974bc496df (diff) |
Support arbitrary arity
Also, some windows fixes in util.
Diffstat (limited to 'search/edge_generator.cc')
-rw-r--r-- | search/edge_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/search/edge_generator.cc b/search/edge_generator.cc index baa91ed1b..260159b1f 100644 --- a/search/edge_generator.cc +++ b/search/edge_generator.cc @@ -75,7 +75,7 @@ template <class Model> PartialEdge EdgeGenerator::Pop(Context<Model> &context) { PartialVertex old_value(top_nt[victim]); PartialVertex alternate_changed; if (top_nt[victim].Split(alternate_changed)) { - PartialEdge alternate = partial_edge_pool_.Allocate(arity, incomplete + 1); + PartialEdge alternate(partial_edge_pool_, arity, incomplete + 1); alternate.SetScore(top.GetScore() + alternate_changed.Bound() - old_value.Bound()); alternate.SetNote(top.GetNote()); |