diff options
author | Kenneth Heafield <github@kheafield.com> | 2014-06-03 19:48:10 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2014-06-03 19:48:10 +0400 |
commit | 346a8f41b0318b3d4c2b9878e09da755c07b7ee6 (patch) | |
tree | 2839d2e901dc088e8f0d3691c15c7ca3a31bd843 /moses/Incremental.cpp | |
parent | 23e9083514c33a5b26d79798f3e476c5cdd743d6 (diff) |
Use boost::ref for Visual Studio / Mike Ladwig
Diffstat (limited to 'moses/Incremental.cpp')
-rw-r--r-- | moses/Incremental.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/Incremental.cpp b/moses/Incremental.cpp index 4ee639b3e..4e593df7e 100644 --- a/moses/Incremental.cpp +++ b/moses/Incremental.cpp @@ -42,7 +42,7 @@ public: ChartCellLabel::Stack &stack = out_.FindOrInsert(static_cast<const TargetPhrase *>(partial.GetNote().vp)->GetTargetLHS()); Gen *entry = static_cast<Gen*>(stack.incr_generator); if (!entry) { - entry = generator_pool_.construct(context_, *vertex_pool_.construct(), best_); + entry = generator_pool_.construct(boost::ref(context_), boost::ref(*vertex_pool_.construct()), boost::ref(best_)); stack.incr_generator = entry; } entry->NewHypothesis(partial); |