diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-09 21:16:31 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-09 21:16:31 +0400 |
commit | a867063a3bd0996c5e204f0e2639e3f983b5f78f (patch) | |
tree | 9e13d62777d0609d693085ac4047b7f2f166af58 /moses/ChartHypothesis.h | |
parent | 4db9aa2973bee8e8785ba0bb9517bbb1d66ac297 (diff) |
convert to using shared pointers in ChartTranslationOptions
Diffstat (limited to 'moses/ChartHypothesis.h')
-rw-r--r-- | moses/ChartHypothesis.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartHypothesis.h b/moses/ChartHypothesis.h index 7ddfd001c..96f98930b 100644 --- a/moses/ChartHypothesis.h +++ b/moses/ChartHypothesis.h @@ -49,7 +49,7 @@ protected: static ObjectPool<ChartHypothesis> s_objectPool; #endif - const TargetPhrase &m_targetPhrase; + boost::shared_ptr<TargetPhrase> m_targetPhrase; WordsRange m_currSourceWordsRange; std::vector<const FFState*> m_ffStates; /*! stateful feature function states */ @@ -102,7 +102,7 @@ public: //! Get the rule that created this hypothesis const TargetPhrase &GetCurrTargetPhrase()const { - return m_targetPhrase; + return *m_targetPhrase; } //! the source range that this hypothesis spans |