From 06b0b6ae87fa0184c2ceb4827dd090a6d5709a45 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Thu, 12 Dec 2013 01:13:23 +0000 Subject: 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 --- moses/RuleCubeItem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'moses/RuleCubeItem.h') 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 &GetTranslationOption() const { + const boost::shared_ptr GetTranslationOption() const { return m_orderedTargetPhrases[m_pos]; } -- cgit v1.2.3