diff options
author | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 16:49:45 +0400 |
---|---|---|
committer | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-14 16:49:45 +0400 |
commit | 558c8bd9b73dad13f4e038a3635e71b11522ec42 (patch) | |
tree | fabfb3af86d7f77e7435254d20a4dcce7bd3323d /mert/FeatureArray.h | |
parent | b672d9f6df57eeed721ab49c4796ae12081d2ac6 (diff) |
fix compilation of Optimizer
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1651 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/FeatureArray.h')
-rw-r--r-- | mert/FeatureArray.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/FeatureArray.h b/mert/FeatureArray.h index 1063960c7..db1fc3e15 100644 --- a/mert/FeatureArray.h +++ b/mert/FeatureArray.h @@ -44,8 +44,8 @@ public: inline size_t getIndex(){ return idx; } inline void setIndex(size_t value){ idx=value; } - inline FeatureStats get(int i){ return array_.at(i); } - inline FeatureStats get(int i)const{ return array_.at(i); } + inline FeatureStats& get(int i){ return array_.at(i); } + inline const FeatureStats& get(int i)const{ return array_.at(i); } void add(FeatureStats e){ array_.push_back(e); } inline size_t size(){ return array_.size(); } |