diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-12 05:13:23 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-12-12 05:13:23 +0400 |
commit | 06b0b6ae87fa0184c2ceb4827dd090a6d5709a45 (patch) | |
tree | f1ffa590d237281b24530f820987eed9f7581c39 /moses/RuleCubeItem.h | |
parent | 7c237bf389169fa2cce0766353a985b8afe0385f (diff) |
c++ acting like a dumbass untyped scripting language and silently cast variables. Hashing of some obscure object didn't work on old boost. Broke target syntax when linking against those old boost libraries
Diffstat (limited to 'moses/RuleCubeItem.h')
-rw-r--r-- | moses/RuleCubeItem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/RuleCubeItem.h b/moses/RuleCubeItem.h index 0abc905f7..3e687d194 100644 --- a/moses/RuleCubeItem.h +++ b/moses/RuleCubeItem.h @@ -53,7 +53,7 @@ public: return m_pos+1 < m_orderedTargetPhrases.size(); } - const boost::shared_ptr<ChartTranslationOption> &GetTranslationOption() const { + const boost::shared_ptr<ChartTranslationOption> GetTranslationOption() const { return m_orderedTargetPhrases[m_pos]; } |