Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2014-11-28 20:15:01 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-11-28 20:15:01 +0300
commit79e1c12c1cc63a13ca18eba81fe975d79d5862c4 (patch)
tree4b4de651fc39cd6f59fae1cf32cd14910454cc2f /moses/Util.h
parente8cdbcd84b241711d5735f2a6ea3f9fed1bf0d7b (diff)
make GetParam() a const method with no side effect
Diffstat (limited to 'moses/Util.h')
-rw-r--r--moses/Util.h12
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;