diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-28 20:15:01 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-28 20:15:01 +0300 |
commit | 79e1c12c1cc63a13ca18eba81fe975d79d5862c4 (patch) | |
tree | 4b4de651fc39cd6f59fae1cf32cd14910454cc2f /moses/Util.h | |
parent | e8cdbcd84b241711d5735f2a6ea3f9fed1bf0d7b (diff) |
make GetParam() a const method with no side effect
Diffstat (limited to 'moses/Util.h')
-rw-r--r-- | moses/Util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/moses/Util.h b/moses/Util.h index 8e8ccf34b..74a130b9e 100644 --- a/moses/Util.h +++ b/moses/Util.h @@ -121,6 +121,18 @@ inline SearchAlgorithm Scan<SearchAlgorithm>(const std::string &input) } template<> +inline S2TParsingAlgorithm Scan<S2TParsingAlgorithm>(const std::string &input) +{ + return (S2TParsingAlgorithm) Scan<size_t>(input); +} + +template<> +inline SourceLabelOverlap Scan<SourceLabelOverlap>(const std::string &input) +{ + return (SourceLabelOverlap) Scan<size_t>(input); +} + +template<> inline XmlInputType Scan<XmlInputType>(const std::string &input) { XmlInputType ret; |