aboutsummaryrefslogtreecommitdiff
path: root/japanese/zinnia
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2018-01-21 10:08:40 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2018-01-21 10:08:40 +0000
commite3d058fb6be246955188c355d888f106482b5669 (patch)
treea1c50ba1e6e89dc39e4354c0316ba3cad6cbe95e /japanese/zinnia
parent70d8dc7bc291c72da680b2ebbe4d50224be4c1cf (diff)
downloadports-e3d058fb6be246955188c355d888f106482b5669.tar.gz
ports-e3d058fb6be246955188c355d888f106482b5669.zip
Fix build with clang 6
trainer.cpp:106:18: error: no matching function for call to 'make_pair' x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PR: 224669 Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=459583
Diffstat (limited to 'japanese/zinnia')
-rw-r--r--japanese/zinnia/files/patch-trainer.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/japanese/zinnia/files/patch-trainer.cpp b/japanese/zinnia/files/patch-trainer.cpp
new file mode 100644
index 000000000000..982e03df81d9
--- /dev/null
+++ b/japanese/zinnia/files/patch-trainer.cpp
@@ -0,0 +1,20 @@
+--- trainer.cpp.orig 2010-05-09 05:34:08 UTC
++++ trainer.cpp
+@@ -93,7 +93,7 @@ class TrainerImpl: public Trainer {
+
+ public:
+ bool add(const Character &character) {
+- const std::string y = character.value();
++ std::string y = character.value();
+ CHECK_FALSE(!y.empty()) << "input character is empty";
+ Features features;
+ CHECK_FALSE(features.read(character)) << "cannot read character: " << y;
+@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer {
+ if (!fn) {
+ return false;
+ }
+- x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
++ x_.push_back(std::make_pair(y, fn));
+ return true;
+ }
+