diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-12 02:46:00 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-05-12 02:46:00 +0400 |
commit | 5ece9a17402a3d383b0d7545eae42af9fee83130 (patch) | |
tree | 3f51295f7be5f83ab1755eb42c1503698a99c787 /moses/FeatureVector.h | |
parent | 40bc98df56ec9708ccc3d53ef7c09a7e0dcf3809 (diff) |
fixed potential bug. Function returns reference to local variable. /Thomas Schoenemann
Diffstat (limited to 'moses/FeatureVector.h')
-rw-r--r-- | moses/FeatureVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/FeatureVector.h b/moses/FeatureVector.h index 4401e3c03..9c15ba4f7 100644 --- a/moses/FeatureVector.h +++ b/moses/FeatureVector.h @@ -255,7 +255,7 @@ namespace Moses { /** Internal get and set. */ const FValue& get(const FName& name) const; - const FValue& getBackoff(const FName& name, float backoff) const; + FValue getBackoff(const FName& name, float backoff) const; void set(const FName& name, const FValue& value); FNVmap m_features; |